Class: Proco::Queue::MultiQueue
- Defined in:
- lib/proco/queue/multi_queue.rb
Instance Method Summary collapse
-
#initialize(size, delay) ⇒ MultiQueue
constructor
A new instance of MultiQueue.
- #push_impl(item) ⇒ Object
- #take_impl ⇒ Object
Methods inherited from Base
Methods included from MT::Base
#broadcast, #do_when, #signal, #synchronize, #try_when, #wait_until
Constructor Details
#initialize(size, delay) ⇒ MultiQueue
Returns a new instance of MultiQueue.
7 8 9 10 |
# File 'lib/proco/queue/multi_queue.rb', line 7 def initialize size, delay super @future = Future.new end |
Instance Method Details
#push_impl(item) ⇒ Object
12 13 14 15 |
# File 'lib/proco/queue/multi_queue.rb', line 12 def push_impl item @items << item @future end |