Skip to main content

EmberAsyncThrottler

还没翻译译自英文(tanstack.com)本页 26 段都还没译

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

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

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


setOptions

setOptions: (options) => void;

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

Parameters

options

Partial<EmberAsyncThrottlerOptions<TFn, TSelected>>

Returns

void


state

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

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.