Class: FistOfFury::Dispatcher
- Inherits:
-
Object
- Object
- FistOfFury::Dispatcher
- Includes:
- Logging
- Defined in:
- lib/fist_of_fury/dispatcher.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#dispatch(worker, time) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/fist_of_fury/dispatcher.rb', line 5 def dispatch(worker, time) enqueue(worker) if worker.scheduled_time_met?(time) rescue StandardError => e # TODO: exception handling support raise e end |