Class: Zscheduler::Timer

Inherits:
Struct
  • Object
show all
Defined in:
lib/zscheduler.rb

Overview

EM::Timer, EM::PeriodicTimer wrapper

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#timerObject

Returns the value of attribute timer

Returns:

  • (Object)

    the current value of timer



7
8
9
# File 'lib/zscheduler.rb', line 7

def timer
  @timer
end

Instance Method Details

#cancelObject

Cancel timer



9
10
11
# File 'lib/zscheduler.rb', line 9

def cancel
  self.timer.cancel
end