Docs
Cloudflare
Railway
CodeRabbit
SerpAPI
Clerk
OpenRouter
WorkOS
Netlify
AG Grid
Sentry
Prisma
Unkey
Electric
Cloudflare
Railway
CodeRabbit
SerpAPI
Clerk
OpenRouter
WorkOS
Netlify
AG Grid
Sentry
Prisma
Unkey
Electric
Debouncer API Reference
Throttler API Reference
Rate Limiter API Reference
Queue API Reference
Batcher API Reference

asyncThrottlerOptions

Function: asyncThrottlerOptions()

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

Defined in: async-throttler.ts:148

Utility function for sharing common AsyncThrottlerOptions options between different AsyncThrottler instances.

Type Parameters

TFn

TFn extends AnyAsyncFunction = AnyAsyncFunction

TOptions

TOptions extends Partial<AsyncThrottlerOptions<TFn>> = Partial<AsyncThrottlerOptions<TFn>>

Parameters

options

TOptions

Returns

TOptions