about summary refs log tree commit homepage
path: root/lib/rainbows/fiber.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-12-27 08:57:31 +0000
committerEric Wong <normalperson@yhbt.net>2010-12-27 09:17:45 +0000
commit2b85ea421197af84a13f6062b21ddcf61490ebcf (patch)
treec0c23b154fa0955fde13e02fc80c2941ae5498c0 /lib/rainbows/fiber.rb
parent87a38d1a5658938a3540b45ab04cc85a9135c8f0 (diff)
downloadrainbows-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.rb7
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