throwIfCancellationRequested method
void
throwIfCancellationRequested()
check whether it has canceled, yes ,throw
Implementation
void throwIfCancellationRequested() {
if (isCanceled) {
throw OperationCanceledError("this token has aleady canceled");
}
}