Cancellable.setErrorIfCancelled

If the cancellable is cancelled, sets the error to notify that the operation was cancelled.

class Cancellable
bool
setErrorIfCancelled
()

Return Value

Type: bool

true if cancellable was cancelled, false if it was not