// ets_tracing: off import * as C from "../core.js" import * as CatchAll from "./catchAll.js" export function orDieWith_( self: C.Channel, f: (e: OutErr) => E ) { return CatchAll.catchAll_(self, (e) => C.die(f(e))) } /** * @ets_data_first orDieWith_ */ export function orDieWith(f: (e: OutErr) => E) { return ( self: C.Channel ) => orDieWith_(self, f) }