pollableSourceNewFull

fnglib.source.Source pollableSourceNewFull(gobject.object.ObjectWrap pollableStream, glib.source.Source childSource = null, gio.cancellable.Cancellable cancellable = null)

Utility method for #GPollableInputStream and #GPollableOutputStream implementations. Creates a new #GSource, as with [gio.global.pollableSourceNew], but also attaching child_source (with a dummy callback), and cancellable, if they are non-null.

Parameters

pollableStreamthe stream associated with the new source
childSourceoptional child source to attach
cancellableoptional #GCancellable to attach

Returns

the new #GSource.