Class: Contender::DirectExecutor
- Defined in:
- lib/contender/direct_executor.rb
Overview
Simple implementation of an executor that executes blocks in the calling thread
Instance Method Summary collapse
Instance Method Details
#execute(task = nil, &block) ⇒ undefined
7 8 9 |
# File 'lib/contender/direct_executor.rb', line 7 def execute(task = nil, &block) (task || block).call end |