This module contains default kgio_wait_readable
and kgio_wait_writable
methods that block indefinitely (in a thread-safe manner) until an IO object is read or writable. This module is included in the Kgio::PipeMethods
and Kgio::SocketMethods
modules used by all bundled IO-derived objects.
io.kgio_wait_readable -> IO io.kgio_wait_readable(timeout) -> IO or nil source
Blocks the running Thread indefinitely until the IO object is readable or if timeout
expires. If timeout
is specified and expires, nil
is returned.
This method is automatically called (without timeout argument) by default whenever kgio_read needs to block on input.
Users of alternative threading/fiber libraries are encouraged to override this method in their subclasses or modules to work with their threading/blocking methods.
io.kgio_wait_writable -> IO io.kgio_wait_writable(timeout) -> IO or nil source
Blocks the running Thread indefinitely until the IO object is writable or if timeout
expires. If timeout
is specified and expires, nil
is returned.
This method is automatically called (without timeout argument) by default whenever kgio_write needs to block on output.
Users of alternative threading/fiber libraries are encouraged to override this method in their subclasses or modules to work with their threading/blocking methods.
mail archives: https://yhbt.net/kgio-public/ http://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/kgio-public/ nntp://news.public-inbox.org/inbox.comp.lang.ruby.kgio nntp://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/inbox.comp.lang.ruby.kgio public: kgio-public@yhbt.net source code: git clone https://yhbt.net/kgio.git torsocks git clone http://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/kgio.git