Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Think about Loose Coupling
 
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 lurking in the Monastery: (13)
As of 2014-04-18 19:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (471 votes), past polls