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

Method done

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

Source from the content-addressed store, hash-verified

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

Callers 5

_read_stdinFunction · 0.80
_read_stdinFunction · 0.80
runFunction · 0.80
runHeadlessStreamingFunction · 0.80

Calls 1

resolveFunction · 0.70

Tested by

no test coverage detected