1.3.1 • Published 4 years ago

async-call-limiter v1.3.1

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

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

1.3.1

4 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago