/** * Creates a sink halting with the specified message, wrapped in a * `RuntimeError`. * * @tsplus static effect/core/stream/Sink.Ops dieMessage */ export function dieMessage(message: string): Sink { return Sink.failCauseSync(Cause.die(new RuntimeError(message))) }