MCPcopy Create free account
hub / github.com/Azure/Azurite / stdoutOn

Function stdoutOn

tests/linuxbinary.test.ts:81–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79 let messageReceived: string = "";
80
81 function stdoutOn() {
82 return new Promise(resolve => {
83 // exclamation mark suppresses the TS error that "child.stdout is possibly null"
84 child.stdout!.on('data', function (data: any) {
85 messageReceived += data.toString();
86 if (messageReceived == fullSuccessMessage) {
87 resolve("resolveMessage");
88 }
89 });
90 });
91 }
92
93 await stdoutOn();
94 });

Callers 1

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…