Operation.proxy
Description:
[ CCode ( has_construct_function = false , type = "GCancellable*" ) ]
[ Version ( since = "3.24" ) ]
public Operation.proxy (Cancellable? cancellable = null)
[ Version ( since = "3.24" ) ]
public Operation.proxy (Cancellable? cancellable = null)
Proxies the cancellable
in a way that if it is cancelled, then the returned cancellable is also cancelled, but when the returned
cancellable is cancelled, then it doesn't influence the original cancellable.
Other CamelOperation actions being done on the returned cancellable are also propagated to the cancellable
.
The passed-in cancellable
can be null, in which case a plain CamelOperation is returned.
This is useful when some operation can be cancelled from elsewhere (like by a user), but also by the code on its own, when it doesn't make sense to cancel also any larger operation to which the passed-in cancellable belongs.
Parameters:
cancellable |
a Cancellable to proxy |
Returns:
A new operation handle, proxying |