MCPcopy Create free account
hub / github.com/freecodexyz/free-code / done

Method done

src/utils/stream.ts:49–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 }
48
49 done() {
50 this.isDone = true
51 if (this.readResolve) {
52 const resolve = this.readResolve
53 this.readResolve = undefined
54 this.readReject = undefined
55 resolve({ done: true, value: undefined })
56 }
57 }
58
59 error(error: unknown) {
60 this.hasError = error

Callers 3

runFunction · 0.80
runHeadlessStreamingFunction · 0.80

Calls 1

resolveFunction · 0.70

Tested by

no test coverage detected