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

Function onReadable

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

Source from the content-addressed store, hash-verified

346 const exit = options.exit ?? MutableRef.make(undefined)
347 const latch = Latch.makeUnsafe(false)
348 function onReadable() {
349 latch.openUnsafe()
350 }
351 function onError(error: unknown) {
352 exit.current = Exit.fail(options.onError(error))
353 latch.openUnsafe()

Callers

nothing calls this directly

Calls 1

openUnsafeMethod · 0.65

Tested by

no test coverage detected