Package: gio
Function gio:cancellable-source-new
Lambda Listgio:cancellable-source-new (cancellable) ArgumentsReturn ValueThe new g:source instance. Details Creates a source that triggers if cancellable is cancelled and calls its g:cancellable-source-func callback function.
This is primarily useful for attaching to another (non-cancellable) source with the g:source-add-child-source function to add cancellability to it. For convenience, you can call this function with a nil value for cancellable, in which case the source will never trigger. | See also |
#2024-10-23