method

nonblock

ruby latest stable - Class: IO
nonblock(p1 = v1)
public

Yields self in non-blocking mode.

When false is given as an argument, self is yielded in blocking mode. The original mode is restored after the block is executed.