MCPcopy Create free account
hub / github.com/effect-app/libs / onData

Function onData

repos/effect/packages/platform-node-shared/src/NodeSocket.ts:164–169  ·  view source on GitHub ↗
(chunk: Uint8Array)

Source from the content-addressed store, hash-verified

162 return yield* FiberSet.join(fiberSet)
163
164 function onData(chunk: Uint8Array) {
165 const result = handler(chunk)
166 if (Effect.isEffect(result)) {
167 run(result)
168 }
169 }
170 function onEnd() {
171 Deferred.doneUnsafe(fiberSet.deferred, Effect.void)
172 }

Callers

nothing calls this directly

Calls 2

runFunction · 0.70
handlerFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…