rainbows.git  about / heads / tags
Unicorn for sleepy apps and slow clients
blob 5c5ded91c01a39d6dac43a6b5d61e304855a6513 247 bytes (raw)
$ git show HEAD:lib/rainbows/never_block/event_machine.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
 
# -*- encoding: binary -*-
# :enddoc:
class Rainbows::NeverBlock::Client < Rainbows::EventMachine::Client
  def app_call input
    POOL.spawn do
      begin
        super input
      rescue => e
        handle_error(e)
      end
    end
  end
end

git clone https://yhbt.net/rainbows.git