1.4.0 • Published 9 years ago

exit-then v1.4.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

exit-then

NPM version Dependency Status License Downloads Gittip

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();
    });
  });
});