Pike v8.1 release 6

Method Filesystem.Monitor.basic()->set_nonblocking()


Method set_nonblocking

void set_nonblocking(int|void t)

Description

Turn on nonblocking mode.

Parameter t

Suggested time in seconds until next call of check().

Register suitable callbacks with the backend to automatically call check().

check() and thus all the callbacks will be called from the backend thread.

Note

If nonblocking mode is already active, this function will be a noop.

See also

set_blocking(), check().