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
Download (untitled) / with headers
text/plain 344b
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".
Download (untitled) / with headers
text/plain 642b
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.
Download (untitled) / with headers
text/plain 112b
Ticket rejected. No feedback from requester regarding a suggested equivalent operation using existing features.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.