An open API service indexing awesome lists of open source software.

https://github.com/simplesmiler/throw-next-tick

Throw the error in the next tick
https://github.com/simplesmiler/throw-next-tick

Last synced: over 1 year ago
JSON representation

Throw the error in the next tick

Awesome Lists containing this project

README

          

# throw-next-tick

> Throw the error in the next tick

## Install

``` sh
$ npm install throw-next-tick --save
```

## Usage

Can be used as a `.done` replacement for promises:

``` js
var throwNextTick = require('throw-next-tick');

promiseOfSomething
.then(function(something) { ... })
.catch(throwNextTick);
```

## License

[ISC](https://opensource.org/licenses/ISC)