Skip to main content

AlpineAsyncThrottler

Defined in: async-throttler/createAsyncThrottler.ts:22

An AsyncThrottler with framework-reactive selected state. All core methods remain available.

Extends

  • Omit<AsyncThrottler<TFn>, "options" | "setOptions">

Type Parameters

TFn

TFn extends AnyAsyncFunction

TSelected

TSelected = { }

Properties

options

options: AsyncThrottlerOptions<TFn> & AlpineAsyncThrottlerOptions<TFn, TSelected>;

Defined in: async-throttler/createAsyncThrottler.ts:26


setOptions

setOptions: (options) => void;

Defined in: async-throttler/createAsyncThrottler.ts:28

Parameters

options

Partial<AlpineAsyncThrottlerOptions<TFn, TSelected>>

Returns

void


state

readonly state: Readonly<TSelected>;

Defined in: async-throttler/createAsyncThrottler.ts:34

Selected state. Pass a selector to opt in; the default selection is an empty object.


subscribe

subscribe: AlpinePacerSubscribe<AsyncThrottlerState<TFn>>;

Defined in: async-throttler/createAsyncThrottler.ts:32

Subscribes a child owner to selected state with automatic cleanup.