Class: Zscheduler::Timer
- Inherits:
-
Struct
- Object
- Struct
- Zscheduler::Timer
- Defined in:
- lib/zscheduler.rb
Overview
EM::Timer, EM::PeriodicTimer wrapper
Instance Attribute Summary collapse
-
#timer ⇒ Object
Returns the value of attribute timer.
Instance Method Summary collapse
-
#cancel ⇒ Object
Cancel timer.
Instance Attribute Details
#timer ⇒ Object
Returns the value of attribute timer
7 8 9 |
# File 'lib/zscheduler.rb', line 7 def timer @timer end |
Instance Method Details
#cancel ⇒ Object
Cancel timer
9 10 11 |
# File 'lib/zscheduler.rb', line 9 def cancel self.timer.cancel end |