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

Function onCause

packages/effect/src/Channel.ts:409–410  ·  view source on GitHub ↗
(cause: Cause.Cause<EX | OutErr | Cause.Done<OutDone>>)

Source from the content-addressed store, hash-verified

407 Effect.fnUntraced(function*(upstream, scope) {
408 const closableScope = Scope.forkUnsafe(scope)
409 const onCause = (cause: Cause.Cause<EX | OutErr | Cause.Done<OutDone>>) =>
410 Scope.close(closableScope, Pull.doneExitFromCause(cause))
411 const pull = yield* Effect.onError(
412 f(upstream, scope, closableScope),
413 onCause

Callers

nothing calls this directly

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected