common Rainbows.sleep(nr) method
commitfa622de470d475f0afc94cb619cc69e7e127830c
authorEric Wong <normalperson@yhbt.net>
Tue, 22 Dec 2009 09:22:32 +0000 (22 01:22 -0800)
committerEric Wong <normalperson@yhbt.net>
Tue, 22 Dec 2009 21:05:30 +0000 (22 13:05 -0800)
tree90e7f20bd857bd2db08117029e913627cda2774c
parentcdac4e6b8847754421c6f65baab2ac9a105d746a
common Rainbows.sleep(nr) method

We'll export this across the board to all Rack applications
to sleep with.  This provides the optimum method of sleeping
regardless of the concurrency model you choose.  This method
is still highly not recommended for pure event-driven models
like Rev or EventMachine (but the threaded/fiber/actor-based
variants are fine).
Documentation/comparison.haml
lib/rainbows.rb
lib/rainbows/fiber/base.rb
lib/rainbows/fiber/rev.rb
t/simple-http_Revactor.ru
t/simple-http_ThreadPool.ru
t/simple-http_ThreadSpawn.ru
t/sleep.ru
t/t9000.ru
t/worker-follows-master-to-death.ru