Skip to content
This repository has been archived by the owner on Dec 30, 2019. It is now read-only.

add pool.finish() function to process all pending queries before shutting down #133

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

ghost
Copy link

@ghost ghost commented Sep 21, 2019

fix #132

more useful than only processing the current active connection queries with end() is to finish processing all current pending queries before shutting down and calling the callback, so add function finish()

Mike Slattery added 3 commits September 20, 2019 17:35
endAll finishes the pending queue before closing
@ghost ghost changed the title add pool.endAll() function to process all pending queries before shutting down add pool.finish() function to process all pending queries before shutting down Sep 21, 2019
Copy link
Owner

@brianc brianc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution! We'll need tests for this code in order to merge it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pool.end() needs to process pending queries
1 participant