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

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Looking at perldoc POE::Kernel, it looks like everything you need is already there.
Original alarm and delay methods: ... # Post an event which will be delivered after a delay, specif +ied in # seconds hence. This clears previous timed events with the s +ame # name. $kernel->delay( $event, $seconds, @event_args ); # Post an additional delay, leaving existing ones in the queu +e. $kernel->delay_add( $event, $seconds, @event_args ); June 2001 alarm and delay methods: ... # Post an event which will be delivered a number of seconds h +ence. # This does not clear previous events with the same name. $alarm_id = $kernel->delay_set( $event, $seconds_hence, @etc +); ... # Refresh an existing delay to a number of seconds in the fut +ure. $kernel->delay_adjust( $delay_id, $number_of_seconds_hence ); ...
It looks like you have to use the new _set and _adjust forms, but you can only do adjustments if you saved the id _set returned. Almost looks like you're back to square one :(

Mike

In reply to Re: Accessing POE's delayed event queue by RMGir
in thread Accessing POE's delayed event queue by diotalevi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2024-04-18 13:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found