Re: calling $poe_kernel more than once

"Phil Whelan" <[email protected]>
Newsgroups gmane.comp.lang.perl.poe
Message-ID <[email protected]>
Hi Yuri,

>  >     What will happen if $poe_kernel->run called more than once?

> What if it is called while in the POE loop?

I think it may tear a hole in the space-time continuum!

I'd be interested to see how you've structured your code to get this
to be called twice. I usually just do the following...

   <set up sessions to run here>

   POE::Kernel->run;
   exit;

Cheers,
Phil

On Fri, Mar 14, 2008 at 4:49 PM, Yuri Shtil <[email protected]> wrote:
> What if it is called while in the POE loop?
>
>
>  Matt Sickler wrote:
>  > Go right ahead.  run() doesn't return until the POE loop completely
>  > shutsdown, so its somewhat pointless.
>  > IIRC, the wiki has an example where it does make sense.
>  >
>  > On Fri, Mar 14, 2008 at 3:54 PM, Yuri Shtil <[email protected]
>
>
> > <mailto:[email protected]>> wrote:
>  >
>  >     What will happen if $poe_kernel->run called more than once?
>  >
>  >     If this is bad, is there a way to detect that the loop is already
>  >     active.
>  >
>  >     -- Yuri
>  >
>  >
>



-- 
Mobile: +1 778-233-4935
Website: http://philw.co.uk
Skype: philwhelan76
Email : [email protected]
iChat: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.