Open History to see the last commit
Defined in: async-throttler/AsyncThrottlerController.ts:12
Owns a AsyncThrottler for a Lit host. Access core methods and selected state through pacer.
Type Parameters#
TFn#
TFn extends AnyAsyncFunction
TSelected#
TSelected = {
}
Constructors#
Constructor#
new AsyncThrottlerController<TFn, TSelected>(
host,
fn,
options,
selector?): AsyncThrottlerController<TFn, TSelected>;
Defined in: async-throttler/AsyncThrottlerController.ts:17
Parameters#
host#
ReactiveControllerHost
fn#
TFn
options#
LitPacerOptions<LitAsyncThrottlerOptions<TFn, TSelected>>
selector?#
(state) => TSelected
Returns#
AsyncThrottlerController<TFn, TSelected>
Properties#
pacer#
readonly pacer: LitAsyncThrottler<TFn, TSelected>;
Defined in: async-throttler/AsyncThrottlerController.ts:16
Accessors#
state#
Get Signature#
get state(): Readonly<TSelected>;
Defined in: async-throttler/AsyncThrottlerController.ts:27
Selected reactive state. Reading this property participates in host rendering.
Returns#
Readonly<TSelected>