Class: TimeMachine::Executors::ThreadExecutor
- Defined in:
- lib/thread_executor.rb
Overview
ThreadExecutor is currently the only implementation of Executor. It executes the task in a background thread, so slow tasks will not block the scheduler.
Instance Method Summary collapse
Instance Method Details
#execute(&block) ⇒ Object
13 14 15 |
# File 'lib/thread_executor.rb', line 13 def execute(&block) Thread.new(&block) end |