定义于: throttler.ts:6
• TFn extends AnyFunction
executionCount: number;
executionCount: number;
定义于: throttler.ts:10
已完成的函数执行次数
isPending: boolean;
isPending: boolean;
定义于: throttler.ts:14
节流器是否正在等待超时触发执行
lastArgs: undefined | Parameters<TFn>;
lastArgs: undefined | Parameters<TFn>;
定义于: throttler.ts:18
最近一次调用 maybeExecute 的参数
lastExecutionTime: number;
lastExecutionTime: number;
定义于: throttler.ts:22
函数上次执行的时间戳(毫秒)
maybeExecuteCount: number;
maybeExecuteCount: number;
定义于: throttler.ts:26
调用 maybeExecute 的次数(用于计算减少)
nextExecutionTime: undefined | number;
nextExecutionTime: undefined | number;
定义于: throttler.ts:30
下次可以执行的时间戳(毫秒)
status: "disabled" | "idle" | "pending";
status: "disabled" | "idle" | "pending";
定义于: throttler.ts:34
当前执行状态 - 'idle' 表示不活动,'pending' 表示等待超时
您的每周 JavaScript 资讯。每周一免费发送给超过 10 万开发者。