MCPcopy Index your code
hub / github.com/coder/mux / markDone

Function markDone

src/node/services/coderService.ts:189–198  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

187
188 let pending = 2;
189 const markDone = () => {
190 pending--;
191 if (pending === 0) {
192 streamsDone = true;
193 if (resolveNext) {
194 resolveNext();
195 resolveNext = null;
196 }
197 }
198 };
199
200 const processStream = (stream: NodeJS.ReadableStream | null, isStderr: boolean) => {
201 if (!stream) {

Callers 1

processStreamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected