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

Function findInterrupt

packages/effect/src/internal/effect.ts:189–192  ·  view source on GitHub ↗
(self: Cause.Cause<E>)

Source from the content-addressed store, hash-verified

187
188/** @internal */
189export const findInterrupt = <E>(self: Cause.Cause<E>): Result.Result<Cause.Interrupt, Cause.Cause<E>> => {
190 const reason = self.reasons.find(isInterruptReason)
191 return reason ? Result.succeed(reason) : Result.fail(self)
192}
193
194/** @internal */
195export const causeFilterInterruptors = <E>(

Callers

nothing calls this directly

Calls 3

findMethod · 0.45
succeedMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected