Skip to main content

LitAsyncDebouncer

Defined in: async-debouncer/createAsyncDebouncer.ts:23

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

Extends

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

Type Parameters

TFn

TFn extends AnyAsyncFunction

TSelected

TSelected = { }

Properties

options

options: AsyncDebouncerOptions<TFn> & LitAsyncDebouncerOptions<TFn, TSelected>;

Defined in: async-debouncer/createAsyncDebouncer.ts:27


setOptions

setOptions: (options) => void;

Defined in: async-debouncer/createAsyncDebouncer.ts:29

Parameters

options

Partial<LitAsyncDebouncerOptions<TFn, TSelected>>

Returns

void


state

readonly state: Readonly<TSelected>;

Defined in: async-debouncer/createAsyncDebouncer.ts:35

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


subscribe

subscribe: LitPacerSubscribe<AsyncDebouncerState<TFn>>;

Defined in: async-debouncer/createAsyncDebouncer.ts:33

Subscribes a child owner to selected state with automatic cleanup.