PollableSource.full


Description:

public PollableSource.full (Object pollable_stream, Source? child_source, Cancellable? cancellable = null)

Utility method for PollableInputStream and PollableOutputStream implementations.

Creates a new SocketSource, as with g_pollable_source_new, but also attaching child_source (with a dummy callback), and cancellable, if they are non-null.

Parameters:

pollable_stream

the stream associated with the new source

child_source

optional child source to attach

cancellable

optional Cancellable to attach

Returns:

the new SocketSource.