Re: calling $poe_kernel more than once
Robert Landrum <[email protected]>
| Newsgroups | gmane.comp.lang.perl.poe |
|---|---|
| Message-ID | <[email protected]> |
Matt Cashner wrote:
> Second, in your magic POE wrapping api, you can use POE::API::Peek to
> determine the state of the kernel. I've got a is_running() method in
> there that you can either use via my module or rip out and use with
> credit. Yay for the bsd license :) Using the module would help me know
> that it still works though :)
Or third, you could track the state of POE inside the object that is
wrapping POE.
return if $self->{is_running};
$self->{is_running} = 1;
$poe_kernel->run;
Or am I missing something obvious?
Rob