MCPcopy Create free account
hub / github.com/ZToolsCenter/ZTools / waitTime

Function waitTime

resources/zbrowser/runner.js:55–59  ·  view source on GitHub ↗

* 等待指定毫秒数 * * @param {number} ms - 等待时长(毫秒)

(ms)

Source from the content-addressed store, hash-verified

53 * @param {number} ms - 等待时长(毫秒)
54 */
55function waitTime(ms) {
56 return new Promise((resolve) => {
57 setTimeout(resolve, ms)
58 })
59}
60
61/**
62 * 轮询等待条件满足

Callers 1

runWaitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected