Skip Menu |

This queue is for tickets about the POE CPAN distribution.

Report information
The Basics
Id: 18441
Status: rejected
Priority: 0/
Queue: POE

People
Owner: Nobody in particular
Requestors: adamk [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.3301
Fixed in: 0.3301



Subject: POE::Kernel instance method ->running
Sometimes there is code where (while not timely) it should only really be called while the Kernel is actively running. It would be useful to have a ->running method to be able to tell if the Kernel is currently running. Note that this is NOT quite the same thing as the ::Peek method, which only answers "has the kernel ever run in the past".
On Wed Mar 29 18:46:11 2006, ADAMK wrote: Show quoted text
> Sometimes there is code where (while not timely) it should only really > be called while the Kernel is actively running. > > It would be useful to have a ->running method to be able to tell if the > Kernel is currently running. > > Note that this is NOT quite the same thing as the ::Peek method, which > only answers "has the kernel ever run in the past".
Does it work to test whether $poe_kernel->get_active_session() != $poe_kernel? If I'm not mistaken, the only time your code will be called while the Kernel is running is during event handling. Then there's an active, non-Kernel session.
Ticket rejected. No feedback from requester regarding a suggested equivalent operation using existing features.