Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 375 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 375 Bytes

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