async-exit-hook
async-exit-hook copied to clipboard
Add weight optional param to exit hook
This would be useful to control the order of exit hooks execution where required. Use case: if I am using it for shutting down dependant processes gracefully, I am probably expecting to have logging being shut down as last.