throw-next-tick

Throw the error in the next tick

Usage no npm install needed!

<script type="module">
  import throwNextTick from 'https://cdn.skypack.dev/throw-next-tick';
</script>

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