Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sokratisvidros/race-until
- Owner: SokratisVidros
- License: mit
- Created: 2016-09-29T20:02:48.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T17:47:33.000Z (almost 2 years ago)
- Last Synced: 2024-10-05T02:25:54.923Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 651 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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)