Beefy Boxes and Bandwidth Generously Provided by pair Networks
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 romping around the Monastery: (24)
As of 2015-07-31 17:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (279 votes), past polls