MCPcopy
hub / github.com/Effect-TS/effect / onData

Function onData

packages/platform-node-shared/src/NodeSocket.ts:131–136  ·  view source on GitHub ↗
(chunk: Uint8Array)

Source from the content-addressed store, hash-verified

129 return yield* FiberSet.join(fiberSet)
130
131 function onData(chunk: Uint8Array) {
132 const result = handler(chunk)
133 if (Effect.isEffect(result)) {
134 run(result)
135 }
136 }
137 function onEnd() {
138 Deferred.unsafeDone(fiberSet.deferred, Effect.void)
139 }

Callers

nothing calls this directly

Calls 2

runFunction · 0.70
handlerFunction · 0.50

Tested by

no test coverage detected