Sha256: 64e527404e6d949d268efde0e09ea784259c28869558030e000d328d50496441
Contents?: true
Size: 361 Bytes
Versions: 1
Compression:
Stored size: 361 Bytes
Contents
# -*- encoding: binary -*- # :enddoc: # used to wrap a BasicSocket to use with +q+ for all writes # this is compatible with IO.select class Rainbows::WriterThreadPool::Client < Struct.new(:to_io, :q) include Rainbows::SocketProxy def write(buf) q << [ to_io, buf ] end def close q << [ to_io, :close ] end def closed? false end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rainbows-2.1.0 | lib/rainbows/writer_thread_pool/client.rb |