throw-next-tick

0.1.0 • Public • Published

throw-next-tick

Throw the error in the next tick

Install

$ npm install throw-next-tick --save

Usage

Can be used as a .done replacement for promises:

var throwNextTick = require('throw-next-tick');
 
promiseOfSomething
  .then(function(something) { ... })
  .catch(throwNextTick);

License

ISC

Package Sidebar

Install

npm i throw-next-tick

Weekly Downloads

423

Version

0.1.0

License

ISC

Last publish

Collaborators

  • simplesmiler