Re: Coroutines and blocking IO
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Coroutines and blocking IO
- From: Lisa Parratt <lisa@...>
- Date: 2006年1月26日 10:07:19 +0000
Jon Smirl wrote:
They have pushed the copas functionality down into the base
language library. Ruby does this for all things that can block, not
just the network.
base.receive=receive
function receive(skt)
if (predicateIJustMadeUpToDetectType(skt) == true)
return copas.receive(skt)
else
return base.receive(skt)
end
end
&c.
--
Lisa
http://www.thecommune.org.uk/~lisa/