Gio.PollableOutputStream.prototype.can_poll
function can_poll(): Boolean { // Gjs wrapper for g_pollable_output_stream_can_poll() }
Checks if stream is actually pollable. Some classes may implement Gio.PollableOutputStream but have only certain instances of that class be pollable. If this method returns false, then the behavior of other Gio.PollableOutputStream methods is undefined.
For any given stream, the value returned by this method is constant; a stream cannot switch from pollable to non-pollable or vice versa.
Since 2.28
- Returns
true if stream is pollable, false if not.