disconnect

suspend fun disconnect(): Result<Unit>

Closes the connection to a service. Use this method to explicitly disconnect from a data source. When this method completes, the DynamicEntityDataSource.connectionStatus is set to disconnected or failed.

If this method is called when a data source has a DynamicEntityDataSource.connectionStatus of connecting, the current connection attempt is cancelled.

Return

A Result that has no return value.

Since

200.1.0