cancellable_chain


Description:


[ Version ( since = "3.28" ) ]
public unowned Cancellable? cancellable_chain (Cancellable? self = null, Cancellable? other = null)

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 = dzl_cancellable_chain (cancellable, self->cancellable);

Parameters:

self

a Cancellable or null

other

a Cancellable or null

Returns:

a Cancellable or null


Namespace: Dazzle
Package: libdazzle-1.0