The AsyncWatcher lets you signal another thread to wake up. Its intended use is notifying another thread of events.
# File lib/cool.io/async_watcher.rb, line 31 def on_readable # Read a byte from the pipe. This clears readability, unless # another signal is pending begin @reader.read_nonblock 1 rescue Errno::EAGAIN # in case there are spurious wakeups from forked processs return end on_signal end
Generated with the Darkfish Rdoc Generator 2.