"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.never = void 0;
// ets_tracing: off
const core_1 = require("./core");
const effectAsyncInterrupt_1 = require("./effectAsyncInterrupt");
/**
 * Returns a effect that will never produce anything. The moral equivalent of
 * `while(true) {}`, only without the wasted CPU cycles.
 */
exports.never = (0, core_1.suspend)(() => (0, effectAsyncInterrupt_1.effectAsyncInterrupt)(() => {
    const interval = setInterval(() => {
        //
    }, 60000);
    return (0, core_1.succeedWith)(() => {
        clearInterval(interval);
    });
}));
//# sourceMappingURL=never.js.map