rainbows.git about / heads / tags Unicorn for sleepy apps and slow clients
blob e4f60a4075d6765e3bd5276316f4badc2d5778fc 220 bytes (raw) $ git show HEAD:t/rack-fiber_pool/app.ru # shows this blob on the CLI
1 2 3 4 5 6 7 8 9 10
require 'rack/fiber_pool' use Rack::FiberPool use Rack::ContentLength use Rack::ContentType, 'text/plain' run lambda { |env| f = Fiber.current EM.add_timer(3) { f.resume } Fiber.yield [ 200, {}, [ "#{f}\n" ] ] }
git clone https://yhbt.net/rainbows.git