diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-12-27 08:57:31 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-12-27 09:17:45 +0000 |
commit | 2b85ea421197af84a13f6062b21ddcf61490ebcf (patch) | |
tree | c0c23b154fa0955fde13e02fc80c2941ae5498c0 /lib/rainbows/fiber.rb | |
parent | 87a38d1a5658938a3540b45ab04cc85a9135c8f0 (diff) | |
download | rainbows-2b85ea421197af84a13f6062b21ddcf61490ebcf.tar.gz |
This is also our website, so we need to document the new Cool.io-based concurrency options for users and point existing Rev* users to it.
Diffstat (limited to 'lib/rainbows/fiber.rb')
-rw-r--r-- | lib/rainbows/fiber.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/rainbows/fiber.rb b/lib/rainbows/fiber.rb index ed01147..3dc97c3 100644 --- a/lib/rainbows/fiber.rb +++ b/lib/rainbows/fiber.rb @@ -1,14 +1,16 @@ # -*- encoding: binary -*- -# :enddoc: +# :stopdoc: begin require 'fiber' rescue LoadError defined?(NeverBlock) or raise end +# :startdoc: -# core module for all things that use Fibers in Rainbows! +# core namespace for all things that use Fibers in \Rainbows! module Rainbows::Fiber + # :stopdoc: # blocked readers (key: fileno, value: Rainbows::Fiber::IO object) RD = [] @@ -17,6 +19,7 @@ module Rainbows::Fiber # sleeping fibers go here (key: Fiber object, value: wakeup time) ZZ = {} + # :startdoc: # puts the current Fiber into uninterruptible sleep for at least # +seconds+. Unlike Kernel#sleep, this it is not possible to sleep |