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