Function
Idecancellable_chain
Description
If both self and other are not NULL, then the cancellation of
other will be propagated to self if other is cancelled.
If self and other are the same, self is returned and no additional
chaining will occur.
If self and other are NULL, then NULL is returned.
If self is non-NULL, it will be returned.
If self is NULL and other is non-NULL, other will be
returned. This is useful to succinctly chain cancellables like:
cancellable = ide_cancellable_chain (cancellable, self->cancellable);
Parameters
self-
Type:
GCancellableA
GCancellableorNULL.The argument can be NULL.The data is owned by the caller of the function. other-
Type:
GCancellableA
GCancellableorNULL.The argument can be NULL.The data is owned by the caller of the function.
Return value
Type: GCancellable
A GCancellable or NULL.
| The data is owned by the called function. |
The return value can be NULL. |