/** * Returns the `FiberId` associated with the first `Interrupt` in this `Cause` * if one exists. * * @tsplus getter effect/core/io/Cause interruptMaybe */ export function interruptMaybe(self: Cause): Maybe { return self.find((cause) => cause.isInterruptType() ? Maybe.some(cause.fiberId) : Maybe.none) }