4.0.0 • Published 1 month 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 month ago
4.0.0
1 month ago
3.0.3
10 months ago
3.0.2
10 months ago
3.0.0-PR.14-3b7b
10 months ago
3.0.0-PR.12-a144
10 months ago
3.0.1-PR.16-6e39
10 months ago
3.0.0
10 months ago
3.0.1-PR.14-5149
10 months ago
3.0.0-PR.14-4f12
10 months ago
3.0.0-PR.12-9d48
10 months ago
3.0.0-PR.14-b838
10 months ago
3.0.2-PR.16-4a9b
10 months ago
2.0.0-PR.10-64e5
1 year ago
2.0.1
1 year ago
2.0.0
2 years ago
1.0.0
3 years ago
0.0.2
3 years ago