Skip to main content

LitAsyncQueuer

Defined in: async-queuer/createAsyncQueuer.ts:22

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

Extends

  • Omit<AsyncQueuer<TValue>, "options" | "setOptions">

Type Parameters

TValue

TValue

TSelected

TSelected = { }

Properties

options

options: AsyncQueuerOptions<TValue> & LitAsyncQueuerOptions<TValue, TSelected>;

Defined in: async-queuer/createAsyncQueuer.ts:26


setOptions

setOptions: (options) => void;

Defined in: async-queuer/createAsyncQueuer.ts:28

Parameters

options

Partial<LitAsyncQueuerOptions<TValue, TSelected>>

Returns

void


state

readonly state: Readonly<TSelected>;

Defined in: async-queuer/createAsyncQueuer.ts:34

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


subscribe

subscribe: LitPacerSubscribe<AsyncQueuerState<TValue>>;

Defined in: async-queuer/createAsyncQueuer.ts:32

Subscribes a child owner to selected state with automatic cleanup.