checkStatusCancelable method

CancelableOperation<bool> checkStatusCancelable()

Cancelable version of checkStatus. See that method for more information.

Implementation

CancelableOperation<bool> checkStatusCancelable() {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_Job_checkStatusAsync(_handle, errorHandler);
  });
  return taskHandle
      .toCancelableOperation((element) => element.getValueAsBool()!);
}