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
Add optional promise parameter to RedisConnectionPool.close
Motivation:
The actual process for closing a connection pool involves closing each individual connection, which is all asynchronous.
There is currently no way to work off of the event when all of the connections have completed their close process.
Modifications:
- Add: `poolHasActiveConnections` error value to `RedisConnectionPoolError`
- Add: `promise` parameter to the `RedisConnectionPool.close` method
- Add: Documentation comments for the close method
Result:
Developers should now have a way of chaining callbacks when all connections in a pool have been closed.
0 commit comments