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

Function stdoutOn

tests/exe.test.ts:108–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106 let messageReceived: string = "";
107
108 function stdoutOn() {
109 return new Promise((resolve) => {
110 // exclamation mark suppresses the TS error that "child.stdout is possibly null"
111 child.stdout!.on("data", function (data: any) {
112 messageReceived += data.toString();
113 if (messageReceived == fullSuccessMessage) {
114 resolve("resolveMessage");
115 }
116 });
117 });
118 }
119
120 await stdoutOn();
121 });

Callers 1

exe.test.tsFile · 0.70

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…