@effect-ts/system
Version:
Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.
22 lines (20 loc) • 686 B
JavaScript
// ets_tracing: off
import * as C from "../Cause/cause.mjs";
import { haltWith } from "./core.mjs";
/**
* Returns an effect that dies with the specified `unknown`.
* This method can be used for terminating a fiber because a defect has been
* detected in the code.
*/
export function die(e, __trace) {
return haltWith(trace => C.traced(C.die(e), trace()), __trace);
}
/**
* Returns an effect that dies with the specified `unknown`.
* This method can be used for terminating a fiber because a defect has been
* detected in the code.
*/
export function dieWith(e, __trace) {
return haltWith(trace => C.traced(C.die(e()), trace()), __trace);
}
//# sourceMappingURL=die.mjs.map