Class: EventMachineSpawn::Timer

Inherits:
Object
  • Object
show all
Defined in:
lib/right_agent/eventmachine_spawn.rb

Class Method Summary collapse

Class Method Details

.new(*args, &block) ⇒ Object



67
68
69
# File 'lib/right_agent/eventmachine_spawn.rb', line 67

def self.new(*args, &block)
  EM::Timer.new(*args) { EM_S.fiber_pool ? EM_S.fiber_pool.spawn(&block) : yield }
end