setErrorIfCancelled

open fun setErrorIfCancelled(): <Error class: unknown class><Boolean>

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

Return

true if @cancellable was cancelled, false if it was not