disconnect
suspend fun disconnect(timeout: Duration = env.timeoutConfig().disconnectTimeout().toKotlinDuration())
Content copied to clipboard
Gives any in-flight requests a chance to complete, then disposes of resources allocated to the cluster.
Call this method when your application is ready to shut down or when you are done using the cluster.