Instance Method
shutdown()
Shuts down the HTTP client used by the CouchDB client.
func shutdown() async throws
Discussion
This asynchronous function ensures that the HTTPClient instance is properly shut down, releasing any resources it holds. It is important to call this method when the CouchDBClient is no longer needed to avoid resource leaks.
Throws
An error if the shutdown process fails.
Note
When the client uses HTTPClient.shared (the default), this method is a no-op, since the shared client must not be shut down.