Class: ZMachine::Timer
- Inherits:
-
Object
- Object
- ZMachine::Timer
- Defined in:
- lib/zmachine/timers.rb
Overview
Instance Method Summary collapse
-
#cancel ⇒ Object
Cancel the timer.
-
#initialize(interval, callback = nil, &block) ⇒ Timer
constructor
Create a new timer that fires after a given number of seconds.
Constructor Details
Instance Method Details
#cancel ⇒ Object
Cancel the timer
16 17 18 |
# File 'lib/zmachine/timers.rb', line 16 def cancel ZMachine.cancel_timer(@signature) end |