Skip to content
Amphiluke edited this page Dec 1, 2025 · 7 revisions

About async-aid

async-aid logo

The async-aid library is a set of utility functions, each providing specific sort of guards or tools for using in common scenarios where async functions are involved. Primary use cases include:

  • caching the results of async function calls (memoisation),
  • deduplication of HTTP requests or other asynchronous operations,
  • automatic retrying the asyncronous operation in case of failure,
  • execution of concurrent asynchronous operations in superseding mode based on the launch time,
  • creating async functions with execution time limit.

Utilities provided by async-aid work both on the server side (in the Node.js environment) and on the client side (in browsers).

Table of contents

  1. About async-aid
  2. Installing
  3. Cacher API: createCacher()
  4. Cacher API: resetCacher()
  5. Deduper API: createDeduper()
  6. Deduper API: resetDeduper()
  7. Retryer API: createRetryer()
  8. Superseder API: createSuperseder()
  9. Timekeeper API: createTimekeeper()

Clone this wiki locally