AnyEvent + AnyEvent::Socket
Vikas N Kumar
vikas at vikaskumar.org
Wed Oct 9 19:04:41 CEST 2013
On 10/09/2013 09:44 AM, Vikas N Kumar wrote:
> Do I still need to call AnyEvent->condvar->recv ? Prima already has a
> Prima::run event loop calling module. Do you think the tcp_connect()
> will automatically get called by Prima's event loop.
Answering my own question. One should not use "run Prima" but create an
AnyEvent->timer object called say every 1/20th of a second and invoke
"$::application->yield" in it. This will allow for Prima to work along
with AnyEvent. And yes we need to call AnyEvent->condvar->recv at the
end as well.
Thanks.
Vikas
More information about the anyevent
mailing list