Class: IOPromise::ExecutorPool::Sequential
- Defined in:
- lib/iopromise/executor_pool/sequential.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#begin_executing, for, #initialize, #promise_cancelled, #promise_fulfilled, #promise_rejected, #register, #sync
Constructor Details
This class inherits a constructor from IOPromise::ExecutorPool::Base
Instance Method Details
#execute_continue ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/iopromise/executor_pool/sequential.rb', line 10 def execute_continue @pending.dup.each do |active| execute_continue_item(active) unless active.fulfilled? # once we're waiting on our one next item, we're done return end end # if we fall through to here, we have nothing to wait on. end |
#execute_continue_item(item) ⇒ Object
6 7 8 |
# File 'lib/iopromise/executor_pool/sequential.rb', line 6 def execute_continue_item(item) item.execute_continue end |