本页还没有译文
本页 32 段还没译成Русский,下面显示的是英文原文。AsyncThrottlerController
还没翻译译自英文(tanstack.com)本页 32 段都还没译
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>
AI 翻译查看英文原文