Class: Contender::Executor Abstract
- Inherits:
-
Object
- Object
- Contender::Executor
- Defined in:
- lib/contender/executor.rb
Overview
This class is abstract.
Represents a mechanism for executing submitted blocks
This interface decouples task submission from the way that tasks will be run, including details of thread use, scheduling, etc.
Direct Known Subclasses
Instance Method Summary collapse
-
#execute(task = nil, &block) ⇒ undefined
abstract
Executes the given block at some time in the future.
Instance Method Details
#execute(task = nil, &block) ⇒ undefined
This method is abstract.
Executes the given block at some time in the future
The block may execute in a new thread, in a pooled thread, or in the calling thread, at the discretion of the implementation.
17 18 19 |
# File 'lib/contender/executor.rb', line 17 def execute(task = nil, &block) raise NotImplementedError end |