5.0.0 • Published 1 year ago

@checkdigit/timeout v5.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@checkdigit/timeout

Copyright (c) 2023–2025 Check Digit, LLC

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

5.0.0

1 year ago

4.0.0-PR.18-363b

2 years ago

4.0.0

2 years ago

3.0.3

3 years ago

3.0.2

3 years ago

3.0.0-PR.14-3b7b

3 years ago

3.0.0-PR.12-a144

3 years ago

3.0.1-PR.16-6e39

3 years ago

3.0.0

3 years ago

3.0.1-PR.14-5149

3 years ago

3.0.0-PR.14-4f12

3 years ago

3.0.0-PR.12-9d48

3 years ago

3.0.0-PR.14-b838

3 years ago

3.0.2-PR.16-4a9b

3 years ago

2.0.0-PR.10-64e5

3 years ago

2.0.1

3 years ago

2.0.0

4 years ago

1.0.0

5 years ago

0.0.2

5 years ago