Class | Rev::IOWatcher |
In: |
lib/rev/io_watcher.rb
lib/rev/timer_watcher.rb ext/rev/rev_buffer.c |
Parent: | Object |
Rev::IOWatcher monitors Ruby IO objects for readability or writability. This allows your application to block while the kernel is writing out data and fill the read or write buffer whenever there is space available. It‘s used by the Rev::BufferedIO class to provide high performace I/O which is bound by the kernel‘s ability to read and write data.
Temporarily disable an IO watcher which is attached to a loop. This is useful if you wish to toggle event monitoring on and off.
Called whenever the IO object associated with the IOWatcher is readable
Called whenever the IO object associated with the IOWatcher is writable