| 258 | |
| 259 | /** @internal */ |
| 260 | export const flipCauseOption = <E>(self: Cause.Cause<Option.Option<E>>): Option.Option<Cause.Cause<E>> => |
| 261 | match(self, { |
| 262 | onEmpty: Option.some<Cause.Cause<E>>(empty), |
| 263 | onFail: Option.map(fail), |
| 264 | onDie: (defect) => Option.some(die(defect)), |
| 265 | onInterrupt: (fiberId) => Option.some(interrupt(fiberId)), |
| 266 | onSequential: Option.mergeWith(sequential), |
| 267 | onParallel: Option.mergeWith(parallel) |
| 268 | }) |
| 269 | |
| 270 | /** @internal */ |
| 271 | export const interruptOption = <E>(self: Cause.Cause<E>): Option.Option<FiberId.FiberId> => |