From 94b848a8f9120bce8b0abd776b1a9b7e2f4fa30d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 27 Dec 2010 02:43:44 +0000 Subject: introduce worker_yield method 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. --- lib/rainbows.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/rainbows.rb') 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' -- cgit v1.2.3-24-ge0c7