Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

[POE] manage timed events

by Taulmarill (Deacon)
on Apr 11, 2005 at 12:48 UTC ( [id://446585]=perlquestion: print w/replies, xml ) Need Help??

Taulmarill has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

is there a common method for managing timed events (done with $kernel->alarm(); and $kernel->delay) in POE programs?
i want to list those events, append informations to them and filter those events by that information. couldn't find anny module/plugin that would do that for me.

in case there is no such module, where there be some features inside the existing POE which made developing such a module easier or more elegant (i'm fiddling around with POE for quite a short time).

all hints, pointers and advisories are appreciated.

Replies are listed 'Best First'.
Re: [POE] manage timed events
by Mugatu (Monk) on Apr 11, 2005 at 17:45 UTC
    I may be wrong (and please somebody correct me if I am), but I don't think there's any standard way to keep track of alarms. It would not be hard to keep track of them yourself, though. A simple array or hash structure should work fine, depending on what exactly you want to do with them.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://446585]
Approved by monkfan
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-23 07:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found