You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
withhappybase.ConnectionPool(10) aspool:
withpool.connection() asconn:
# Your code here# At this point, all connections in the pool will be closed and removed
By using the with statement, the connections will be automatically closed when they go out of scope, and the pool.clear() method will ensure that any remaining connections are closed and removed when you exit the context.
there is no remove resource in ConnectionPool. so i close connection manually.
The text was updated successfully, but these errors were encountered: