close method

Future<void> close()

Closes this service geodatabase.

A request to stop any active reading or editing sessions with the feature service is sent and once this asynchronous process is complete, this service geodatabase will be closed.

Before calling this method, there should be no references to all related data. For example, terminate fetch versions, create version, switch, apply or undo edits, remove feature layers, and release tables from map.

After calling this method, accessing this service geodatabase or any of its connected tables will fail with ArcGISExceptionType.geodatabaseDatabaseClosed.

Closing this service geodatabase is not necessary if it has not been loaded.

Return Value: A Future that has no return value.

Implementation

Future<void> close() {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ServiceGeodatabase_closeAsync(
      _handle,
      errorHandler,
    );
  });
  return taskHandle.toFuture(
    (_) {},
  );
}