@effect-ts/system
Version:
Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.
13 lines (10 loc) • 345 B
text/typescript
// ets_tracing: off
import * as CS from "../../../Cause/index.js"
import type * as C from "./core.js"
import * as FailCause from "./failCause.js"
/**
* Creates a sink halting with the specified `Throwable`.
*/
export function die<E>(e: E): C.Sink<unknown, unknown, unknown, never, unknown, never> {
return FailCause.failCause(CS.die(e))
}