4.0.0 • Published 1 year ago
@checkdigit/timeout v4.0.0
@checkdigit/timeout
The @checkdigit/timeout
module implements the recommended Check Digit timeout algorithm for promises.
Installing
npm install @checkdigit/timeout
Use
import timeout from '@checkdigit/timeout';
// await a promise, with the default 60 second timeout
await timeout(new Promise(....));
// await a promise, but with a 10 second timeout
await timeout(new Promise(....), { timeout: 10000 });
License
MIT
4.0.0-PR.18-363b
1 year ago
4.0.0
1 year ago
3.0.3
2 years ago
3.0.2
2 years ago
3.0.0-PR.14-3b7b
2 years ago
3.0.0-PR.12-a144
2 years ago
3.0.1-PR.16-6e39
2 years ago
3.0.0
2 years ago
3.0.1-PR.14-5149
2 years ago
3.0.0-PR.14-4f12
2 years ago
3.0.0-PR.12-9d48
2 years ago
3.0.0-PR.14-b838
2 years ago
3.0.2-PR.16-4a9b
2 years ago
2.0.0-PR.10-64e5
2 years ago
2.0.1
2 years ago
2.0.0
3 years ago
1.0.0
4 years ago
0.0.2
4 years ago