Method: EaseEngine::Watcher#watch
- Defined in:
- lib/ease_engine/watcher.rb
#watch(timeout = 0) ⇒ Object
47 48 49 50 51 52 53 |
# File 'lib/ease_engine/watcher.rb', line 47 def watch( timeout = 0 ) if ! @watches.empty? @loop.run_once( timeout ) elsif 0 < timeout sleep timeout end end |