MCPcopy Create free account
hub / github.com/devin87/Q.js / waitFor

Function waitFor

node/Q.js:649–659  ·  view source on GitHub ↗

* 等待达到条件或超时时,执行一个回调函数 callback(ops,timedout) * @param {function} check 检测函数,若返回true则立即执行回调函数 * @param {function} callback 回调函数(ops,timedout) * @param {number} timeout 超时时间(单位:ms),默认10000ms * @param {number} sleep 休眠间隔(单位:ms),默认20ms

(check, callback, timeout, sleep)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

_waitForFunction · 0.70

Tested by

no test coverage detected