eventmachine: wait for deferred actions to finish
[rainbows.git] / t / simple-http_WriterThreadSpawn.ru
blob69136f0828a586cf8d82234ba6b85857952f19cd
1 use Rack::ContentLength
2 use Rack::ContentType
3 run lambda { |env|
4   if env['rack.multithread'] && env['rainbows.model'] == :WriterThreadSpawn
5     [ 200, {}, [ Thread.current.inspect << "\n" ] ]
6   else
7     raise "rack.multithread is false"
8   end