Gio.pollable_source_new_full

function pollable_source_new_full(pollable_stream: GObject.Object, child_source: GLib.Source, cancellable: Gio.Cancellable): GLib.Source {
    // Gjs wrapper for g_pollable_source_new_full()
}
  

Utility method for Gio.PollableInputStream and Gio.PollableOutputStream implementations. Creates a new GLib.Source, as with Gio.pollable_source_new, but also attaching child_source (with a dummy callback), and cancellable, if they are non-null.

Since 2.34

pollable_stream

the stream associated with the new source

child_source

optional child source to attach

cancellable

optional Gio.Cancellable to attach

Returns

the new GLib.Source.