queryFeaturesCancelable method

CancelableOperation<FeatureQueryResult> queryFeaturesCancelable(
  1. {required QueryParameters parameters}
)

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

Implementation

CancelableOperation<FeatureQueryResult> queryFeaturesCancelable(
    {required QueryParameters parameters}) {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_FeatureTable_queryFeatures(
        _handle, parameters._handle, errorHandler);
  });
  return taskHandle.toCancelableOperation(
      (element) => element.getValueAsFeatureQueryResult()!);
}