"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.succeed_ = exports.succeed = void 0;
// ets_tracing: off
const core_1 = require("../Effect/core");
const completeWith_1 = require("./completeWith");
/**
 * Completes the promise with the specified value.
 */
function succeed(a) {
    return (promise) => (0, completeWith_1.completeWith)((0, core_1.succeed)(a))(promise);
}
exports.succeed = succeed;
/**
 * Completes the promise with the specified value.
 */
function succeed_(promise, a) {
    return (0, completeWith_1.completeWith)((0, core_1.succeed)(a))(promise);
}
exports.succeed_ = succeed_;
//# sourceMappingURL=succeed.js.map