Method: Evt::Bundled#kernel_sleep

Defined in:
lib/evt/backends/bundled.rb

#kernel_sleep(duration = nil) ⇒ Object

Sleep the current task for the specified duration, or forever if not specified.

Parameters:

  • duration (Numeric) (defaults to: nil)

    The amount of time to sleep in seconds.



111
112
113
114
# File 'lib/evt/backends/bundled.rb', line 111

def kernel_sleep(duration = nil)
  self.block(:sleep, duration)
  true
end