Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

IO#nread

io.nread → int

Returns number of bytes that can be read without blocking. Returns zero if no information available.

You must require ‘io/wait’ to use this method.

See also #nonblock? #oflush #nonblock= #path also in 3.4 · 3.2 · 3.1 · 3.0