Skip to content

Repository files navigation

@checkdigit/timeout

Copyright © 2021-2026 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

About

No description, website, or topics provided.

Resources

Security policy

Stars

1 star

Watchers

9 watching

Forks

Releases

Packages

Used by

Contributors

Languages