Fiber*: add Rainbows::Fiber.sleep method
commit7f11b212f78a5070bea17bc20af43395b6cc621d
authorEric Wong <normalperson@yhbt.net>
Wed, 25 Nov 2009 23:08:25 +0000 (25 15:08 -0800)
committerEric Wong <normalperson@yhbt.net>
Wed, 25 Nov 2009 23:12:13 +0000 (25 15:12 -0800)
treedcef21ffe3a2bac7950293656fb8128a8e13c84c
parent06de4af18d1ba3b28e49e9d8f700df4eca36e635
Fiber*: add Rainbows::Fiber.sleep method

It works exactly like Actor.sleep and similar to Kernel.sleep
(no way to sleep indefinitely), but is compatible with the
IO.select-based Fiber scheduler we run.  This method only works
within the context of a Rainbows! application dispatch.
lib/rainbows/fiber.rb
lib/rainbows/fiber_pool.rb
lib/rainbows/fiber_spawn.rb
t/sleep.ru