"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.schedulePromise = void 0;
const Observable_js_1 = require("../Observable.js");
const observeOn_js_1 = require("../operators/observeOn.js");
const subscribeOn_js_1 = require("../operators/subscribeOn.js");
function schedulePromise(input, scheduler) {
    return (0, Observable_js_1.from)(input).pipe((0, subscribeOn_js_1.subscribeOn)(scheduler), (0, observeOn_js_1.observeOn)(scheduler));
}
exports.schedulePromise = schedulePromise;