in reply to Coro::Channel, worker thread and timeout
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Coro::Channel, worker thread and timeout
by Marseille07 (Acolyte) on Sep 13, 2011 at 06:00 UTC | |
|
Re^2: Coro::Channel, worker thread and timeout
by Marseille07 (Acolyte) on Sep 13, 2011 at 05:17 UTC |