A function wrapper returned by rateLimited that enforces a minimum delay between consecutive executions.
An asynchronous transform function that takes a value and optionally returns a transformed value.
Delay function that sleeps for an adequate amount of time.
Delay function, which shall return false if the retry should be forfeited.
A function that fetches a single page of data.
A synchronous transform function that takes a value and optionally returns a transformed value.
Applies a sequence of asynchronous (and/or synchronous) transform functions to a value.
Applies a sequence of synchronous transform functions to a value.
Asynchronously iterate over an array in batches.
Asynchronously maps an array in batches and concatenates the results.
Creates a memoized version of an asynchronous function to deduplicate requests and cache results.
Fetches pages as an async generator, yielding each non-null page with its index.
Fetches multiple pages in parallel and invokes a callback for each non-null page.
Returns the provided value unchanged.
Invokes the provided function immediately and returns its result.
A no-operation function.
Wraps an asynchronous function so that it is executed at most once every
duration_ms milliseconds. Additional calls are queued and processed
sequentially following a strict FIFO (first-come first-served) order.
Pauses execution for the specified duration.
A function wrapper returned by cached representing the wrapped function with caching capabilities.