lib/em-synchrony.rb in em-synchrony-1.0.1 vs lib/em-synchrony.rb in em-synchrony-1.0.2

- old
+ new

@@ -76,10 +76,10 @@ # Fiber-aware EventMachine timer: wraps the passed in # block within a new fiber context such that you can # continue using synchrony methods # def self.add_timer(interval, &blk) - EM.add_timer(interval) do + EM::Timer.new(interval) do Fiber.new { blk.call }.resume end end # Fiber-aware EventMachine timer: wraps the passed in