Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Can't run two AnyEvent::timers in the same time?

by zwon (Monsignor)
on Aug 29, 2013 at 15:36 UTC ( #1051464=note: print w/ replies, xml ) Need Help??


in reply to Can't run two AnyEvent::timers in the same time?

That's a lot of code and you don't really show how you run it. In general you can run several AnyEvent timers at the same time:

use 5.010; use strict; use warnings; use AnyEvent; my $cv = AE::cv; my $t1 = AE::timer 0.2, 0.2, sub { say "t1" }; my $t2 = AE::timer 1, 0, sub { say "t2"; $cv->send; }; $cv->recv;
Perhaps you're blocking somewhere?


Comment on Re: Can't run two AnyEvent::timers in the same time?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2014-09-17 15:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (90 votes), past polls