UNPKG

@effect-ts/system

Version:

Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.

12 lines (9 loc) 250 B
// ets_tracing: off import * as CH from "../../Channel/index.js" import * as C from "../core.js" /** * Halt a stream with the specified exception */ export function dieWith(u: () => unknown): C.UIO<never> { return new C.Stream(CH.dieWith(u)) }