rainbows.git  about / heads / tags
Unicorn for sleepy apps and slow clients
blob 52ba2cdf669ebb653dff834d92929386ada78efc 649 bytes (raw)
$ git show v2.1.0:lib/rainbows/rev_fiber_spawn.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
 
# -*- encoding: binary -*-
Rainbows.const_set(:RevFiberSpawn, Rainbows::CoolioFiberSpawn)

# CoolioFiberSpawn is the new version of this, use that instead.
#
# A combination of the Rev and FiberSpawn models.  This allows Ruby
# 1.9 Fiber-based concurrency for application processing while
# exposing a synchronous execution model and using scalable network
# concurrency provided by Rev.  A "rack.input" is exposed as well
# being Sunshowers-compatible.  Applications are strongly advised to
# wrap all slow IO objects (sockets, pipes) using the
# Rainbows::Fiber::IO or a Rev-compatible class whenever possible.
module Rainbows::RevFiberSpawn; end

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