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

Function defects

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

Source from the content-addressed store, hash-verified

210
211/** @internal */
212export const defects = <E>(self: Cause.Cause<E>): Chunk.Chunk<unknown> =>
213 Chunk.reverse(
214 reduce<Chunk.Chunk<unknown>, E>(
215 self,
216 Chunk.empty<unknown>(),
217 (list, cause) =>
218 cause._tag === OpCodes.OP_DIE ?
219 Option.some(pipe(list, Chunk.prepend(cause.defect))) :
220 Option.none()
221 )
222 )
223
224/** @internal */
225export const interruptors = <E>(self: Cause.Cause<E>): HashSet.HashSet<FiberId.FiberId> =>

Callers

nothing calls this directly

Calls 2

reduceFunction · 0.70
pipeFunction · 0.70

Tested by

no test coverage detected