"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeManaged = void 0;
// ets_tracing: off
const Effect_1 = require("../Effect");
const core_1 = require("../Effect/core");
const fiberId_1 = require("../Effect/fiberId");
const makeAs_1 = require("./makeAs");
/**
 * Makes a new managed promise to be completed by the fiber creating the promise.
 */
function makeManaged() {
    return (0, Effect_1.toManaged)((0, core_1.chain_)(fiberId_1.fiberId, (id) => (0, makeAs_1.makeAs)(id)));
}
exports.makeManaged = makeManaged;
//# sourceMappingURL=makeManaged.js.map