"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.defer = void 0;
const Observable_js_1 = require("../Observable.js");
function defer(observableFactory) {
    return new Observable_js_1.Observable((subscriber) => {
        (0, Observable_js_1.from)(observableFactory()).subscribe(subscriber);
    });
}
exports.defer = defer;