module EventMachine::Synchrony
def self.sleep(secs)
except without locking the reactor thread
and then automatically resumed (just like regular sleep)
Execution is stopped for specified amount of seconds
Fiber-aware sleep function using an EM timer
def self.sleep(secs) fiber = Fiber.current EM::Timer.new(secs) { fiber.resume } Fiber.yield end