import * as tsplus_module_1 from "@effect/core/io/Cause/definition";
import * as tsplus_module_2 from "@effect/core/io/Layer/operations/failCause";
/**
 * Constructs a layer that dies with the specified throwable.
 *
 * @tsplus static ets/Layer/Ops die
 */

export function die(defect) {
  return tsplus_module_2.failCause(() => tsplus_module_1.die(defect()));
}
//# sourceMappingURL=die.mjs.map