throw-next-tick
v0.1.0
Published
Throw the error in the next tick
Downloads
1,913
Maintainers
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);