Class: EventMachine::OneShotEMTimer

Inherits:
Rev::TimerWatcher show all
Defined in:
lib/revem.rb

Instance Method Summary collapse

Methods inherited from Rev::TimerWatcher

#attach, #detach, #disable, #enable, #initialize, #reset

Methods included from Rev::Meta

#event_callback, #watcher_delegate

Methods inherited from Rev::Watcher

#attach, #attached?, #detach, #disable, #enable, #enabled?, #evloop, #initialize

Constructor Details

This class inherits a constructor from Rev::TimerWatcher

Instance Method Details

#on_timerObject



43
44
45
# File 'lib/revem.rb', line 43

def on_timer
 @proc.call
end

#setup(proc) ⇒ Object



39
40
41
# File 'lib/revem.rb', line 39

def setup(proc)
  @proc = proc
end