exit-then
1.4.0 • Public • Published exit-then
Execute promises before exiting a process.
Useful for cleaning up a process right before it quits.
API
var fns = require('exit-then');
fns.push(function () {
return new Promise(function (resolve) {
doSomethingAsync(function () {
resolve();
});
});
});
Package Sidebar
Install
Weekly Downloads