GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
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
Since command handlers can be functions returning promises... : how do i wait for promise completion to gracefully shutdown things before process.exit() ? Do i have to do it inline each handler ?
@davibe I had this issue when trying to use the handler in a chat bot and I wrote this to help pass through a promise that I resolve in either the command handler or after completion https://github.com/eddywashere/yargs-promise.