MCPcopy Index your code
hub / github.com/Effect-TS/effect / interruptors

Function interruptors

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

Source from the content-addressed store, hash-verified

223
224/** @internal */
225export const interruptors = <E>(self: Cause.Cause<E>): HashSet.HashSet<FiberId.FiberId> =>
226 reduce(self, HashSet.empty<FiberId.FiberId>(), (set, cause) =>
227 cause._tag === OpCodes.OP_INTERRUPT ?
228 Option.some(pipe(set, HashSet.add(cause.fiberId))) :
229 Option.none())
230
231/** @internal */
232export const failureOption = <E>(self: Cause.Cause<E>): Option.Option<E> =>

Callers

nothing calls this directly

Calls 3

reduceFunction · 0.70
pipeFunction · 0.70
addMethod · 0.65

Tested by

no test coverage detected