4 Feb
2015
4 Feb
'15
11:51 a.m.
On 02/04/2015 08:38 AM, Aaron Levy wrote:
Consider an alternative to my example while still using sync I/O.
You may consider using coroutines instead (see the spawn examples.) This way you can have one coroutine per request, served by a fixed number of threads. Whenever the coroutine has to wait for more I/O it will yield the thread so that it can be used by other coroutines.