throw-next-tick

Throw the error in the next tick

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
throw-next-tick
400.1.07 years ago7 years agoMinified + gzip package size for throw-next-tick in KB

Readme

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