source_new


Description:

public CancellableSource source_new ()

Creates a source that triggers if this is cancelled and calls its callback of type CancellableSourceFunc.

This is primarily useful for attaching to another (non-cancellable) source with add_child_source to add cancellability to it.

For convenience, you can call this with a null Cancellable, in which case the source will never trigger.

Parameters:

this

a Cancellable, or null

Returns:

the new SocketSource.