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

Function runAndWait

test/parallel/test-repl-top-level-await.js:58–68  ·  view source on GitHub ↗
(cmds)

Source from the content-addressed store, hash-verified

56});
57
58function runAndWait(cmds) {
59 const promise = putIn.wait();
60 for (const cmd of cmds) {
61 if (typeof cmd === 'string') {
62 putIn.run([cmd]);
63 } else {
64 testMe.write('', cmd);
65 }
66 }
67 return promise;
68}
69
70async function ordinaryTests() {
71 // These tests were created based on

Callers 2

ordinaryTestsFunction · 0.70
ctrlCTestFunction · 0.70

Calls 3

waitMethod · 0.45
runMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…