Seshan Ravikumar

Results 5 comments of Seshan Ravikumar

The way I got this to work was have a regular function on nodeCleanup, and have it call an async function (which eventually runs `process.kill(process.pid, signal);` after awaiting). Basically do...

@noyearzero It doesn't have to be called with await. Once it's called (We just ignore the promise returned by shutDownSequence), the function attached to nodeCleanup continues executing: disabling nodeCleanup (by...

@noyearzero ? node-cleanup doesn't support promises, so you can't directly pass an async function. I doesn't know to wait for the promise to resolve. In an ideal world we can...

I'm glad I could help! Just as an aside, async/await came with ES2017, and this module predates that.

I set reset to True and that seems to make the example work