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

Function delay

test/parallel/test-debugger-profile.js:11–13  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

9const assert = require('assert');
10
11function delay(ms) {
12 return new Promise((resolve) => setTimeout(resolve, ms));
13}
14
15// Profiles.
16{

Calls 1

setTimeoutFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…