"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.forever = void 0;
// ets_tracing: off
const core_1 = require("./core");
const zips_1 = require("./zips");
/**
 * Repeats this effect forever (until the first error).
 */
function forever(effect, __trace) {
    return (0, core_1.chain_)(effect, () => (0, zips_1.zipRight_)(core_1.yieldNow, forever(effect)), __trace);
}
exports.forever = forever;
//# sourceMappingURL=forever.js.map