MCPcopy 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}

Calls 2

includesMethod · 0.80
onMethod · 0.45

Tested by 2

RunProcessFunction · 0.36
run_testMethod · 0.36