close

suspend fun close(): Result<Unit>

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 ErrorType.GeodatabaseDatabaseClosed.

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

Return

A Result that has no return value.

Since

200.1.0