queryRelatedFeatureCountCancelable method

CancelableOperation<int> queryRelatedFeatureCountCancelable(
  1. {required ArcGISFeature feature,
  2. RelatedQueryParameters? parameters}
)

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

Implementation

CancelableOperation<int> queryRelatedFeatureCountCancelable(
    {required ArcGISFeature feature, RelatedQueryParameters? parameters}) {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ArcGISFeatureTable_queryRelatedFeatureCountCombined(
        _handle,
        feature._handle,
        parameters?._handle ?? ffi.nullptr,
        errorHandler);
  });
  return taskHandle
      .toCancelableOperation((element) => element.getValueAsInt()!);
}