race-until
Version:
Race a promise against a time bomb promise.
18 lines (12 loc) • 469 B
Markdown
# race-until
[](https://travis-ci.org/SokratisVidros/race-until)
[](https://www.npmjs.com/package/race-until)
Race a promise against a time bomb promise.
```js
const {raceUntil} = require('race-until');
raceUntil(promise, timeout = 3000, timeoutResponse = 'timeout')
```
# Usage
Please have a look at project's tests.
# License
The MIT License (MIT)