loadOrRefreshFeaturesCancelable method
Cancelable version of loadOrRefreshFeatures. See that method for more information.
Implementation
CancelableOperation<void> loadOrRefreshFeaturesCancelable(
{required List<Feature> features}) {
final coreFeatures =
features.toMutableArray(valueType: _ElementType.feature);
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_ServiceFeatureTable_loadOrRefreshFeatures(
_handle, coreFeatures._handle, errorHandler);
});
return taskHandle.toCancelableOperation((_) {});
}