cancelCancelable method
Cancelable version of cancel. See that method for more information.
Implementation
CancelableOperation<bool> cancelCancelable() {
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_Job_cancelAsync(_handle, errorHandler);
});
return taskHandle
.toCancelableOperation((element) => element.getValueAsBool()!);
}