cmy 02a04f55a0 2023-3-15 2 years ago
..
README.md 02a04f55a0 2023-3-15 2 years ago
index.js 02a04f55a0 2023-3-15 2 years ago
package.json 02a04f55a0 2023-3-15 2 years ago

README.md

capture-exit

Build status Build Status

Allow cooprative async exit handlers, we unfortunately must hijack process.exit.

It allows a handler to ensure exit, without that exit handler impeding other similar handlers

for example, see: sindresorhus/ora#27

Differences between process.on('exit') and captureExit.onExit(...) => https://github.com/ember-cli/capture-exit/issues/12