Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sokratisvidros/race-until

Race a promise against a time bomb promise
https://github.com/sokratisvidros/race-until

Last synced: 2 months ago
JSON representation

Race a promise against a time bomb promise

Awesome Lists containing this project

README

        

# race-until
[![](https://travis-ci.org/SokratisVidros/race-until.svg?branch=master)](https://travis-ci.org/SokratisVidros/race-until)
[![](https://badge.fury.io/js/race-until.svg)](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)