import { STMDieException, STMEffect } from "@effect/core/stm/STM/definition/primitives";
/**
 * Kills the fiber running the effect.
 *
 * @tsplus static ets/STM/Ops die
 */

export function die(u) {
  return new STMEffect(() => {
    throw new STMDieException(u());
  });
}
//# sourceMappingURL=die.mjs.map