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

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

by zwon (Abbot)
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?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1051464]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2017-06-24 21:04 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (562 votes). Check out past polls.