// ets_tracing: off import type { Cause } from "../../Cause/index.js" import type { Trace } from "../../Fiber/tracing.js" import * as T from "../deps.js" import { fromEffect } from "../fromEffect.js" /** * Returns an effect that models failure with the specified `Cause`. */ export function halt(self: Cause, __trace?: string) { return fromEffect(T.halt(self), __trace) } /** * Returns an effect that models failure with the specified `Cause`. */ export function haltWith(self: (_: () => Trace) => Cause, __trace?: string) { return fromEffect(T.haltWith(self, __trace)) }