Sha256: ca1fe9bcb88f49660eedbb9094c4c4dc54b744d3493e1a5ffd6ad8871487a1c0
Contents?: true
Size: 276 Bytes
Versions: 1
Compression:
Stored size: 276 Bytes
Contents
require 'thread' class Proco module Queue # @private class SingleQueue < Proco::Queue::Base def initialize size super end def push_impl item future = Future.new @items << [future, item] future end def take_impl @items.shift end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
proco-0.0.1 | lib/proco/queue/single_queue.rb |