MCPcopy Create free account
hub / github.com/Effect-TS/effect / onEnd

Function onEnd

packages/platform/node-shared/src/NodeStream.ts:355–358  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

353 latch.openUnsafe()
354 }
355 function onEnd() {
356 exit.current = Exit.fail(Cause.Done())
357 latch.openUnsafe()
358 }
359 readable.on("readable", onReadable)
360 readable.once("error", onError)
361 readable.once("end", onEnd)

Callers

nothing calls this directly

Calls 2

openUnsafeMethod · 0.65
failMethod · 0.45

Tested by

no test coverage detected