Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Accessing POE's delayed event queue

by rcaputo (Chaplain)
on Jul 06, 2004 at 17:02 UTC ( [id://372147]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %pending;
    
    ...
      delete $pending{$session_id}{$event};
      delete $pending{$session_id} unless keys %{$pending{$session_id}};
    }
    
  2. or download this
    sub some_event_handler {
      # set a timer for 10s from now, unless it's already set
    ...
      # caught the timer; clear the flag
      caught_oneshot_timer($_[STATE]);
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found