TanStack
Throttler API Reference

EmberAsyncThrottler

Defined in: packages/ember-pacer/src/async-throttler/useAsyncThrottler.ts:28

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

ts
options: AsyncThrottlerOptions<TFn> & EmberAsyncThrottlerOptions<TFn, TSelected>;

Defined in: packages/ember-pacer/src/async-throttler/useAsyncThrottler.ts:32


setOptions

ts
setOptions: (options) => void;

Defined in: packages/ember-pacer/src/async-throttler/useAsyncThrottler.ts:34

Parameters

options

Partial<EmberAsyncThrottlerOptions<TFn, TSelected>>

Returns

void


state

ts
readonly state: Readonly<TSelected>;

Defined in: packages/ember-pacer/src/async-throttler/useAsyncThrottler.ts:40

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


Subscribe

ts
Subscribe: EmberPacerSubscribe<AsyncThrottlerState<TFn>>;

Defined in: packages/ember-pacer/src/async-throttler/useAsyncThrottler.ts:38

Selects state in a child without subscribing the utility owner.