Gio.IOStream.prototype.set_pending
function set_pending(): Boolean { // Gjs wrapper for g_io_stream_set_pending() }
Sets stream to have actions pending. If the pending flag is already set or stream is closed, it will return false and set @error.
Since 2.22
- Returns
true if pending was previously unset and is now set.