ios.write_nonblock(string) â integer
Instance Public methods
Writes the given string to ios using the write(2) system call
after O_NONBLOCK is set for the underlying file descriptor.
It returns the number of bytes written.
#write_nonblock just calls
the write(2) system call. It causes all errors the write(2) system call
causes: Errno::EWOULDBLOCK, Errno::EINTR, etc. The result may also be
smaller than string.length (partial write). The caller should care such
errors and partial