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

Function interruptors

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

Source from the content-addressed store, hash-verified

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