close method
Close the client's open connections gracefully.
Returns a Future
that completes when all connections in the client's
pool have finished any currently running query. Any pending queries
awaiting a free connection from the pool, and have not started executing
yet, will return an error.
A warning is produced if the pool takes more than 60 seconds to close.
Implementation
Future<void> close() {
return _pool.close();
}