good chemistry is complicated,
and a little bit messy -LW
Using AnyEventby 0day (Sexton)
|on May 17, 2012 at 10:08 UTC||Need Help??|
0day has asked for the
wisdom of the Perl Monks concerning the following question:
I have a question on the use of AE (HTTP).
At the beginning of the code, I create an object
my $cv = AnyEvent->condvar;
Next, I adds a few tasks in the processing (urls), and then call the
which blocks the thread.
Tasks are executed asynchronously, but one unfulfilled task blocks execution of the program.
Is it possible to make a non-block call to $ cv-> recv (with timeout) and ask it in a loop, like a poll / epoll?
Sorry for my english.