From fa622de470d475f0afc94cb619cc69e7e127830c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 22 Dec 2009 01:22:32 -0800 Subject: common Rainbows.sleep(nr) method We'll export this across the board to all Rack applications to sleep with. This provides the optimum method of sleeping regardless of the concurrency model you choose. This method is still highly not recommended for pure event-driven models like Rev or EventMachine (but the threaded/fiber/actor-based variants are fine). --- t/simple-http_ThreadPool.ru | 1 - 1 file changed, 1 deletion(-) (limited to 't/simple-http_ThreadPool.ru') diff --git a/t/simple-http_ThreadPool.ru b/t/simple-http_ThreadPool.ru index 4bb7348..cd5df82 100644 --- a/t/simple-http_ThreadPool.ru +++ b/t/simple-http_ThreadPool.ru @@ -1,7 +1,6 @@ use Rack::ContentLength use Rack::ContentType run lambda { |env| - sleep 1 if env['rack.multithread'] && env['rainbows.model'] == :ThreadPool [ 200, {}, [ Thread.current.inspect << "\n" ] ] else -- cgit v1.2.3-24-ge0c7