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);
self |
a Cancellable or null |
other |
a Cancellable or null |
a Cancellable or null |