If you want to cancel a certain Coro thread, you will need to find out what primitives Coro has for cancelling a (Coro) thread. Personally, I would not use the synchronous tcp_connect, but a version that returns a guard. That way, you can at least cancel the connect by resetting the guard.
Personally, I wouldn't use Coro explicitly but rather look at what AnyEvent provides as primitives to handle the socket multiplexing and cancellation.
In reply to Re: Coro::Channel, worker thread and timeout
by Corion
in thread Coro::Channel, worker thread and timeout
by Marseille07
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |