• TValue
errorCount: number;
errorCount: number;
导致错误的批处理执行次数
failedItems: TValue[];
failedItems: TValue[];
批处理过程中失败的项数组
isEmpty: boolean;
isEmpty: boolean;
批处理程序是否没有要处理的项(项数组为空)
isExecuting: boolean;
isExecuting: boolean;
当前是否正在异步处理批处理
isPending: boolean;
isPending: boolean;
批处理程序是否正在等待超时触发批处理
items: TValue[];
items: TValue[];
当前排队等待批处理的项数组
lastResult: any;
lastResult: any;
最近一次批处理执行的结果
settleCount: number;
settleCount: number;
已完成(成功或失败)的批处理执行次数
size: number;
size: number;
当前批处理队列中的项数
status: "idle" | "pending" | "executing" | "populated";
status: "idle" | "pending" | "executing" | "populated";
当前处理状态 - 未处理时为“idle”,等待超时时为“pending”,处理中时为“executing”,当有项但未配置等待时为“populated”
successCount: number;
successCount: number;
成功完成的批处理执行次数
totalItemsFailed: number;
totalItemsFailed: number;
所有批处理中处理失败的总项数
totalItemsProcessed: number;
totalItemsProcessed: number;
所有批处理中已处理的总项数
您的每周 JavaScript 资讯。每周一免费发送给超过 10 万开发者。