"use strict"
Object.defineProperty(exports, "__esModule", { value: true })
exports.halt = exports.halt_ = void 0
const core_1 = require("../Effect/core")
const completeWith_1 = require("./completeWith")
/**
 * Halts the promise with the specified cause, which will be propagated to all
 * fibers waiting on the value of the promise.
 */
function halt_(promise, e) {
  return (0, completeWith_1.completeWith)((0, core_1.halt)(e))(promise)
}
exports.halt_ = halt_
/**
 * Halts the promise with the specified cause, which will be propagated to all
 * fibers waiting on the value of the promise.
 */
function halt(e) {
  return (promise) => halt_(promise, e)
}
exports.halt = halt
//# sourceMappingURL=halt.js.map
