框架
版本
Debouncer API 参考
Throttler API 参考
速率限制器 API 参考
队列 API 参考
批处理器 API 参考

SolidThrottler

接口:SolidThrottler<TFn>

定义于:throttler/createThrottler.ts:11

Throttler 类的扩展,添加了 Solid 信号以访问节流器的内部状态

继承

  • Omit<Throttler<TFn>, | "getExecutionCount" | "getIsPending" | "getLastExecutionTime" | "getNextExecutionTime">

类型参数

TFn extends AnyFunction

属性

executionCount

ts
executionCount: Accessor<number>;
executionCount: Accessor<number>;

定义于:throttler/createThrottler.ts:19


isPending

ts
isPending: Accessor<boolean>;
isPending: Accessor<boolean>;

定义于:throttler/createThrottler.ts:20


lastExecutionTime

ts
lastExecutionTime: Accessor<number>;
lastExecutionTime: Accessor<number>;

定义于:throttler/createThrottler.ts:21


nextExecutionTime

ts
nextExecutionTime: Accessor<number>;
nextExecutionTime: Accessor<number>;

定义于:throttler/createThrottler.ts:22