From fa622de470d475f0afc94cb619cc69e7e127830c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 22 Dec 2009 01:22:32 -0800 Subject: 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Documentation') diff --git a/Documentation/comparison.haml b/Documentation/comparison.haml index cccd311..49531f9 100644 --- a/Documentation/comparison.haml +++ b/Documentation/comparison.haml @@ -289,14 +289,14 @@ %td.devfd Yes %td.app_pool Yes %td.lock No! - %td.async Rainbows::Fiber{::IO,.sleep} + %td.async Rainbows::Fiber::IO, Rainbows.sleep %td.ws Sunshowers %tr.comp_row %td.mod FiberPool %td.devfd Yes %td.app_pool Yes %td.lock No! - %td.async Rainbows::Fiber{::IO,.sleep} + %td.async Rainbows::Fiber::IO, Rainbows.sleep %td.ws Sunshowers %tr.comp_row %td.mod ActorSpawn @@ -324,7 +324,7 @@ %td.devfd Yes %td.app_pool Yes %td.lock No! - %td.async Rainbows::Fiber::IO, Rainbows::Fiber::Rev.sleep + %td.async Rainbows::Fiber::IO, Rainbows.sleep %ul %li -- cgit v1.2.3-24-ge0c7