Do you know where your variables are? | |
PerlMonks |
Re^3: AnyEvent: How to protect critical sections?by Corion (Patriarch) |
on May 17, 2011 at 20:43 UTC ( [id://905360]=note: print w/replies, xml ) | Need Help?? |
Then I would cancel the timer when starting the HTTP request, and relaunch the timer in the HTTP request on_body callback (and likely in the on_error callback too). You can "immediately" launch a timer by launching it with after => 0 - this will launch the timer callback the next time the event loop is entered.
In Section
Seekers of Perl Wisdom
|
|