about summary refs log tree commit homepage
path: root/lib/rainbows.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-12-27 02:43:44 +0000
committerEric Wong <normalperson@yhbt.net>2010-12-27 02:43:44 +0000
commit94b848a8f9120bce8b0abd776b1a9b7e2f4fa30d (patch)
tree672d1f677360e849bb4bf5200dc87ec266f701dc /lib/rainbows.rb
parenta310302708faa19042282e94525544cfbb23eba5 (diff)
downloadrainbows-94b848a8f9120bce8b0abd776b1a9b7e2f4fa30d.tar.gz
This lets Rainbows! yield the current worker process
when busy in the hopes another worker will pick up the
slack.  We can also override this for the single worker
process case later if people care enough.
Diffstat (limited to 'lib/rainbows.rb')
-rw-r--r--lib/rainbows.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rainbows.rb b/lib/rainbows.rb
index adbc37c..1f8b252 100644
--- a/lib/rainbows.rb
+++ b/lib/rainbows.rb
@@ -113,6 +113,7 @@ module Rainbows
   autoload :StreamFile, 'rainbows/stream_file'
   autoload :HttpResponse, 'rainbows/http_response' # deprecated
   autoload :ThreadTimeout, 'rainbows/thread_timeout'
+  autoload :WorkerYield, 'rainbows/worker_yield'
 end
 
 require 'rainbows/error'