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

Function sleep

lib/internal/util.js:589–596  ·  view source on GitHub ↗
(msec)

Source from the content-addressed store, hash-verified

587let validateUint32;
588
589function sleep(msec) {
590 // Lazy-load to avoid a circular dependency.
591 if (validateUint32 === undefined)
592 ({ validateUint32 } = require('internal/validators'));
593
594 validateUint32(msec, 'msec');
595 _sleep(msec);
596}
597
598// https://heycam.github.io/webidl/#define-the-operations
599function defineOperation(target, name, method) {

Callers 15

#releaseMethod · 0.50
#flushBufferSyncMethod · 0.50
#flushSyncUtf8Method · 0.50
getServeAwaitFunction · 0.50
handlerFunction · 0.50
mFunction · 0.50
testFunction · 0.50

Calls 1

requireFunction · 0.50

Tested by 1

testFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…