Skip to content
Source
Sign inSign up
TanStack/pacer
Open History to see the last commit

asyncThrottlerOptions.md

32 lines823 Bytes

1---
2id: asyncThrottlerOptions
3title: asyncThrottlerOptions
4---
5​
6```ts
7function asyncThrottlerOptions<TFn, TOptions>(options): TOptions;
8```
9​
10Defined in: [async-throttler.ts:148](https://github.com/TanStack/pacer/blob/main/packages/pacer/src/async-throttler.ts#L148)
11​
12Utility function for sharing common `AsyncThrottlerOptions` options between different `AsyncThrottler` instances.
13​
14## Type Parameters
15​
16### TFn
17​
18`TFn` *extends* [`AnyAsyncFunction`](../type-aliases/AnyAsyncFunction.md) = [`AnyAsyncFunction`](../type-aliases/AnyAsyncFunction.md)
19​
20### TOptions
21​
22`TOptions` *extends* `Partial`\<[`AsyncThrottlerOptions`](../interfaces/AsyncThrottlerOptions.md)\<`TFn`\>\> = `Partial`\<[`AsyncThrottlerOptions`](../interfaces/AsyncThrottlerOptions.md)\<`TFn`\>\>
23​
24## Parameters
25​
26### options
27​
28`TOptions`
29​
30## Returns
31​
32`TOptions`