rainbows.git  about / heads / tags
Unicorn for sleepy apps and slow clients
blob e20149223d5183543a6113139205fb58f499d30c 235 bytes (raw)
$ git show v2.1.0: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
    POOL.spawn do
      begin
        super
      rescue => e
        handle_error(e)
      end
    end
  end
end

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