MCPcopy Create free account
hub / github.com/WhiteSevs/TamperMonkeyScript / waitArrayLoopToEnd

Method waitArrayLoopToEnd

lib/Utils/src/Utils.ts:3587–3597  ·  view source on GitHub ↗

* 等待函数数组全部执行完毕,注意,每个函数的顺序不是同步 * @param data 需要遍历的数组 * @param handleFunc 对该数组进行操作的函数,该函数的参数为数组格式的参数,[数组下标,数组项] * @example * await Utils.waitArrayLoopToEnd([callback,callback,callback],xxxcallback);

(data: any[] | HTMLElement[], handleFunc: (...args: any[]) => any)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

runMethod · 0.80

Tested by

no test coverage detected