MCPcopy Create free account
hub / github.com/nodejs/node / delay

Function delay

deps/v8/tools/js/helper.mjs:60–62  ·  view source on GitHub ↗
(time)

Source from the content-addressed store, hash-verified

58}
59
60export function delay(time) {
61 return new Promise(resolver => setTimeout(resolver, time));
62}
63
64export function defer() {
65 let resolve_func, reject_func;

Callers 6

_streamFileMethod · 0.90
_updateFlameChartMethod · 0.90
_renderSourcePanelMethod · 0.90
addMethod · 0.90
updateMethod · 0.90
_drawContentMethod · 0.90

Calls 1

setTimeoutFunction · 0.50

Tested by

no test coverage detected