-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emit queue event #716
Emit queue event #716
Conversation
When a connection pool has to queue a connection then emit a queue event with the number of connections in the queue as the first argument
Thx. Needs docs. Also curious to hear what the use case is. |
I've added docs to the readme, let me know if you need more.
|
does it have to be an event? Maybe have some public pool methods like 'queueSise', 'numActiveConnections' etc? |
I find the event the most useful, otherwise I'd have to check the queue periodically at specific points in the app or with some hacky setInterval. |
👍 |
Conflicts: Readme.md
When a connection pool has to queue a connection then emit a queue event with the number of connections in the queue as the first argument.