import * as tsplus_module_1 from "@effect/core/stream/Channel/operations/catchAll";
/**
 * @tsplus fluent ets/Channel orDieWith
 */

export function orDieWith_(self, f) {
  return tsplus_module_1.catchAll_(self, e => {
    throw f(e);
  });
}
/**
 * @tsplus static ets/Channel/Aspects orDieWith
 */

export const orDieWith = f => self => orDieWith_(self, f);
//# sourceMappingURL=orDieWith.mjs.map