calling $poe_kernel more than once
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
Re: calling $poe_kernel more than once
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] 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
Re: calling $poe_kernel more than once
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
Re: calling $poe_kernel more than once
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]