(self: Cause.Cause<E>)
| 210 | |
| 211 | /** @internal */ |
| 212 | export 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 */ |
| 225 | export const interruptors = <E>(self: Cause.Cause<E>): HashSet.HashSet<FiberId.FiberId> => |