Class: MessageBus::TimerThread::Cancelable
- Inherits:
-
Object
- Object
- MessageBus::TimerThread::Cancelable
- Defined in:
- lib/message_bus/timer_thread.rb
Defined Under Namespace
Classes: NoOp
Constant Summary collapse
Instance Method Summary collapse
- #cancel ⇒ Object
-
#initialize(job) ⇒ Cancelable
constructor
A new instance of Cancelable.
Constructor Details
#initialize(job) ⇒ Cancelable
Returns a new instance of Cancelable.
16 17 18 |
# File 'lib/message_bus/timer_thread.rb', line 16 def initialize(job) @job = job end |
Instance Method Details
#cancel ⇒ Object
20 21 22 |
# File 'lib/message_bus/timer_thread.rb', line 20 def cancel @job[1] = NOOP end |