"use strict"
Object.defineProperty(exports, "__esModule", { value: true })
exports.fail = exports.fail_ = void 0
// tracing: off
const fail_1 = require("../Effect/fail")
const completeWith_1 = require("./completeWith")
/**
 * Fails the promise with the specified error, which will be propagated to all
 * fibers waiting on the value of the promise.
 */
function fail_(promise, e) {
  return (0, completeWith_1.completeWith)((0, fail_1.fail)(e))(promise)
}
exports.fail_ = fail_
/**
 * Fails the promise with the specified error, which will be propagated to all
 * fibers waiting on the value of the promise.
 */
function fail(e) {
  return (promise) => fail_(promise, e)
}
exports.fail = fail
//# sourceMappingURL=fail.js.map
