cancel method

void cancel()
inherited

Cancels the async function execution.

Implementation

void cancel() {
  if (status == UseAsyncStateStatus.loading) _isCanceled = true;
}