race-until
TypeScript icon, indicating that this package has built-in type declarations

2.3.1 • Public • Published

race-until

Race a promise against a time bomb promise.

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)

Package Sidebar

Install

npm i race-until

Weekly Downloads

3,006

Version

2.3.1

License

MIT

Unpacked Size

8.66 kB

Total Files

17

Last publish

Collaborators

  • sokratis