cancellable


Description:

[ Version ( since = "0.8.0" ) ]
public Cancellable cancellable { get; construct; }

An optional cancellable used to cancel the entire upload operation.

If a Cancellable instance isn't provided for this property at construction time (i.e. to UploadStream), one will be created internally and can be retrieved using get_cancellable and used to cancel the upload operation with cancel just as if it was passed to UploadStream.

If the upload operation is cancelled using this Cancellable, any ongoing network activity will be stopped, and any pending or future calls to OutputStream API on the UploadStream will return CANCELLED. Note that the Cancellable objects which can be passed to individual OutputStream operations will not cancel the upload operation proper if cancelled — they will merely cancel that API call. The only way to cancel the upload operation completely is using cancellable.