Skip to content

Instance Method

shutdown()

Closes the connection pool.
func shutdown()

Discussion

All available connections will be closed immediately. Any connections currently in use will be closed when they are returned to the pool.

Once closed, the connection pool cannot be used to create new connections.

Connection pools must be closed before they deinitialize.

Warning

This method is soft-deprecated. Use syncShutdownGracefully() or shutdownGracefully(_:) instead.