disconnect method

Future<void> disconnect()

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 Value: No value.