This package has been deprecated

Author message:

WARNING: This project has been renamed to async-wrappers. Install using async-wrappers instead.

async-call-limiter
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

async-call-limiter

A set of functions useful in an async/await environment.

Description

These functions are similar to others debounce and throttle functions. e.g. Lodash's: debounce and throttle. However these functions differ in that the resulting function when called returns a promise that will resolve/reject when the wrapped function is invoked. The functions also can take an "argument reducer" function that determines the arguments that will be given to wrapped function. The default reducer implementation just uses the last arguments given, however you can use this to merge arguments so the wrapped function can handle all calls. This could be useful wrapping a request for specific items to merge multiple calls into one request.

Documentation

Package Sidebar

Install

npm i async-call-limiter

Weekly Downloads

1

Version

1.3.1

License

MIT

Unpacked Size

62 kB

Total Files

52

Last publish

Collaborators

  • spudnyk