rainbows.git  about / heads / tags
Unicorn for sleepy apps and slow clients
blob 70cff9962556618818afff05ab32545bab4bec45 249 bytes (raw)
$ git show HEAD:lib/rainbows/coolio_thread_spawn/client.rb	# shows this blob on the CLI

1
2
3
4
5
6
7
8
 
# -*- encoding: binary -*-
# :enddoc:
class Rainbows::CoolioThreadSpawn::Client < Rainbows::Coolio::ThreadClient
  # MASTER will be set in worker_loop
  def app_dispatch
    Thread.new(self) { |client| MASTER << [ client, app_response ] }
  end
end

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