GLib.unix_set_fd_nonblocking
function unix_set_fd_nonblocking(fd: Number(gint), nonblock: Boolean): Boolean { // Gjs wrapper for g_unix_set_fd_nonblocking() }
Control the non-blocking state of the given file descriptor, according to nonblock. On most systems this uses %O_NONBLOCK, but on some older ones may use %O_NDELAY.
Since 2.30
- fd
A file descriptor
- nonblock
If true, set the descriptor to be non-blocking
- Returns
true if successful