As I began using this API, I found no way to guarantee an operation completed in the event of SIGTERM, or SIGKILL. This PR adds the ability to methods that effect resources to be tracked via this._pendingProcesses. If a user of this API needs to close the current Node process rapidly, we can now guarantee operations performed on resources are completed.
As I began using this API, I found no way to guarantee an operation completed in the event of
SIGTERM
, orSIGKILL
. This PR adds the ability to methods that effect resources to be tracked viathis._pendingProcesses
. If a user of this API needs to close the currentNode
process rapidly, we can now guarantee operations performed on resources are completed.