Docs
Code Rabbit
Cloudflare
AG Grid
Netlify
Neon
WorkOS
Clerk
Convex
Electric
Sentry
Prisma
Strapi
Unkey
UI.dev
Code Rabbit
Cloudflare
AG Grid
Netlify
Neon
WorkOS
Clerk
Convex
Electric
Sentry
Prisma
Strapi
Unkey
UI.dev
Debouncer API Reference
Throttler API Reference
Rate Limiter API Reference
Queue API Reference
Batcher API Reference

asyncRateLimiterOptions

Function: asyncRateLimiterOptions()

ts
function asyncRateLimiterOptions<TFn, TOptions>(options): TOptions;
function asyncRateLimiterOptions<TFn, TOptions>(options): TOptions;

Defined in: async-rate-limiter.ts:148

Utility function for sharing common AsyncRateLimiterOptions options between different AsyncRateLimiter instances.

Type Parameters

TFn

TFn extends AnyAsyncFunction = AnyAsyncFunction

TOptions

TOptions extends Partial<AsyncRateLimiterOptions<TFn>> = Partial<AsyncRateLimiterOptions<TFn>>

Parameters

options

TOptions

Returns

TOptions