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