about summary refs log tree commit homepage
path: root/lib/rainbows/fiber_spawn.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-04-26 14:04:26 -0700
committerEric Wong <normalperson@yhbt.net>2011-04-26 14:04:26 -0700
commit6ea50dd6866a7b4eda5134cb2c8980710285e127 (patch)
tree1022141ba80b29f269c925bfd9dce702c3edfc6c /lib/rainbows/fiber_spawn.rb
parent5bd08f7bb06367823412bd3410bcb41babd6d57b (diff)
downloadrainbows-6ea50dd6866a7b4eda5134cb2c8980710285e127.tar.gz
Too much NIH and too fragile.
Diffstat (limited to 'lib/rainbows/fiber_spawn.rb')
-rw-r--r--lib/rainbows/fiber_spawn.rb17
1 files changed, 11 insertions, 6 deletions
diff --git a/lib/rainbows/fiber_spawn.rb b/lib/rainbows/fiber_spawn.rb
index b8552d7..2c6d13d 100644
--- a/lib/rainbows/fiber_spawn.rb
+++ b/lib/rainbows/fiber_spawn.rb
@@ -1,12 +1,17 @@
 # -*- encoding: binary -*-
 require 'rainbows/fiber'
 
-# Simple Fiber-based concurrency model for 1.9.  This spawns a new
-# Fiber for every incoming client connection and the root Fiber for
-# scheduling and connection acceptance.  This exports a streaming
-# "rack.input" with lightweight concurrency.  Applications are
-# strongly advised to wrap all slow IO objects (sockets, pipes) using
-# the Rainbows::Fiber::IO class whenever possible.
+# Simple Fiber-based concurrency model for 1.9.  This spawns a new Fiber
+# for every incoming client connection and the root Fiber for scheduling
+# and connection acceptance.
+#
+# This concurrency model is difficult to use with existing applications,
+# lacks third-party support, and is thus NOT recommended.
+#
+# This exports a streaming "rack.input" with lightweight concurrency.
+# Applications are strongly advised to wrap all slow IO objects
+# (sockets, pipes) using the Rainbows::Fiber::IO class whenever
+# possible.
 module Rainbows::FiberSpawn
   include Rainbows::Fiber::Base