Instance Method
syncShutdownGracefully()
Closes the connection pool.
func syncShutdownGracefully() throws
Discussion
All available connections will be closed immediately. Any connections still in use will be closed as soon as they are returned to the pool. Once closed, the pool can not be used to create new connections.
Connection pools must be closed before they deinitialize.
This method shuts down synchronously, waiting for all connection closures to complete before returning.
Warning
The pool is always fully shut down once this method returns, even if an error is thrown. All errors are purely advisory.