Open History to see the last commit
Defined in: async-queuer/AsyncQueuerController.ts:8
Owns a AsyncQueuer for a Lit host. Access core methods and selected state through pacer.
Type Parameters#
TValue#
TValue
TSelected#
TSelected = {
}
Constructors#
Constructor#
new AsyncQueuerController<TValue, TSelected>(
host,
fn,
options?,
selector?): AsyncQueuerController<TValue, TSelected>;
Defined in: async-queuer/AsyncQueuerController.ts:10
Parameters#
host#
ReactiveControllerHost
fn#
(item) => Promise<any>
options?#
LitPacerOptions<LitAsyncQueuerOptions<TValue, TSelected>> = {}
selector?#
(state) => TSelected
Returns#
AsyncQueuerController<TValue, TSelected>
Properties#
pacer#
readonly pacer: LitAsyncQueuer<TValue, TSelected>;
Defined in: async-queuer/AsyncQueuerController.ts:9
Accessors#
state#
Get Signature#
get state(): Readonly<TSelected>;
Defined in: async-queuer/AsyncQueuerController.ts:20
Selected reactive state. Reading this property participates in host rendering.
Returns#
Readonly<TSelected>