MCPcopy Index your code
hub / github.com/nodejs/node / wait

Method wait

lib/timers/promises.js:222–226  ·  view source on GitHub ↗

* @typedef {import('../internal/abort_controller').AbortSignal} AbortSignal * @param {number} delay * @param {{ signal?: AbortSignal }} [options] * @returns {Promise }

(delay, options)

Source from the content-addressed store, hash-verified

220 * @returns {Promise<void>}
221 */
222 wait(delay, options) {
223 if (!this[kScheduler])
224 throw new ERR_INVALID_THIS('Scheduler');
225 return setTimeout(delay, undefined, options);
226 }
227}
228
229module.exports = {

Callers 15

mainFunction · 0.45
http_getMethod · 0.45
monitor_procFunction · 0.45
do_run_replay_serverFunction · 0.45
run_benchmarkFunction · 0.45
call_with_inputFunction · 0.45
avg.pyFile · 0.45
ExecuteFunction · 0.45
ClangTidyRunDiffFunction · 0.45
gnuplotFunction · 0.45
CppLintWorkerFunction · 0.45
TorqueLintWorkerFunction · 0.45

Calls 1

setTimeoutFunction · 0.70

Tested by 3

test_basicMethod · 0.36
test_logMethod · 0.36
test_killMethod · 0.36