Class: MessageBus::TimerThread::Cancelable
- Inherits:
- 
      Object
      
        - Object
- MessageBus::TimerThread::Cancelable
 
- Defined in:
- lib/message_bus/timer_thread.rb
Constant Summary collapse
- NOOP =
- proc{} 
Instance Method Summary collapse
- #cancel ⇒ Object
- 
  
    
      #initialize(job)  ⇒ Cancelable 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Cancelable. 
Constructor Details
#initialize(job) ⇒ Cancelable
| 8 9 10 | # File 'lib/message_bus/timer_thread.rb', line 8 def initialize(job) @job = job end | 
Instance Method Details
#cancel ⇒ Object
| 11 12 13 | # File 'lib/message_bus/timer_thread.rb', line 11 def cancel @job[1] = NOOP end |