in reply to Re: Coro::Channel, worker thread and timeout in thread Coro::Channel, worker thread and timeout
It turned out tcp_connect returns a guard object unless it is in the void context, so I played with it a little bit -- unfortunately, it is not allowing me to get out of the timer call back and then proceed with the worker thread.
I was hoping there is a way to do that, but maybe after the Anyevent->timer CB gets invoked, there is no way back to the while(1) loop -- which I think was strange but it may just be how it is.
|