Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ wait
Method
wait
test/parallel/test-repl-preview.js:39–46 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
37
return
true;
38
}
39
async
wait() {
40
this.lines = [
''
];
41
for
await
(
const
[line] of events.on(this,
'line'
)) {
42
if
(line.includes(PROMPT)) {
43
return
this.lines;
44
}
45
}
46
}
47
pause() {}
48
resume() {}
49
}
Callers
15
RunProcess
Function · 0.45
run-valgrind.py
File · 0.45
run_test
Method · 0.45
LoadTargetBuildFilesParallel
Function · 0.45
sleepSync
Function · 0.45
test-trace-events-threadpool.js
File · 0.45
runAndWait
Function · 0.45
test-http-keep-alive-timeout-race-condition.js
File · 0.45
test-runner-mock-timers-scheduler.js
File · 0.45
test-worker-messaging-errors-timeout.js
File · 0.45
test-worker-cwd-race-condition.js
File · 0.45
test-worker-unref-from-message-during-exit.js
File · 0.45
Calls
2
includes
Method · 0.80
on
Method · 0.45
Tested by
2
RunProcess
Function · 0.36
run_test
Method · 0.36