Cancellable.setErrorIfCancelled
bool setErrorIfCancelled()If the cancellable is cancelled, sets the error to notify that the operation was cancelled.
Returns
true if cancellable was cancelled, false if it was not
bool setErrorIfCancelled()If the cancellable is cancelled, sets the error to notify that the operation was cancelled.