Method Stdio.Readline()->set_nonblocking()


Method set_nonblocking

void set_nonblocking(function(string|zero:void)|zero f)

Description

Set a function to be called every time a line is completed.

Parameter f

Function to call when a line is completed, or 0 (zero) to disable. It will be called with a string when a line is completed, and 0 (zero) when eof() is called.

See also

set_blocking(), read()