@checkdigit/timeout

4.0.0 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @checkdigit/timeout

Weekly Downloads

993

Version

4.0.0

License

MIT

Unpacked Size

9.61 kB

Total Files

16

Last publish

Collaborators

  • nakodila
  • jpolavar
  • npm-checkdigit
  • carlansley
  • bobwieler
  • ramaghanta
  • aarontay
  • yeshima
  • adcreare
  • checkdigit-deploy
  • lukebearden
  • snopanen
  • branguzmen
  • greg-w101
  • le-cong