rainbows.git  about / heads / tags
Unicorn for sleepy apps and slow clients
blob 32ec7820dfb17ef22e0bcccc7f99ab455c2b39e5 258 bytes (raw)
$ git show HEAD:lib/rainbows/fiber/io/compat.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
 
# -*- encoding: binary -*-
# :enddoc:
#
# Used to make Rainbows::Fiber::IO behave like 0.97.0 and earlier
module Rainbows::Fiber::IO::Compat
  def initialize(io, fiber = Fiber.current)
    @to_io, @f = io, fiber
  end

  def close
    @to_io.close
  end
end

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