/** * @tsplus static effect/core/stream/Channel.Aspects orDieWith * @tsplus pipeable effect/core/stream/Channel orDieWith */ export function orDieWith(f: (e: OutErr) => unknown) { return ( self: Channel ): Channel => self.catchAll((e) => { throw f(e) }) }