docs/vendor.js
function fromPromise(input, scheduler) {
    if (!scheduler) {
        return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](Object(_util_subscribeToPromise__WEBPACK_IMPORTED_MODULE_2__["subscribeToPromise"])(input));
    }
    else {
        return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
            var sub = new _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"]();
            sub.add(scheduler.schedule(function () {
                return input.then(function (value) {
                    sub.add(scheduler.schedule(function () {
                        subscriber.next(value);
                        sub.add(scheduler.schedule(function () { return subscriber.complete(); }));
                    }));
                }, function (err) {
                    sub.add(scheduler.schedule(function () { return subscriber.error(err); }));
                });
            }));
            return sub;
        });
    }
}
function fromPromise(input, scheduler) {
    if (!scheduler) {
        return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](Object(_util_subscribeToPromise__WEBPACK_IMPORTED_MODULE_2__["subscribeToPromise"])(input));
    }
    else {
        return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
            var sub = new _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"]();
            sub.add(scheduler.schedule(function () {
                return input.then(function (value) {
                    sub.add(scheduler.schedule(function () {
                        subscriber.next(value);
                        sub.add(scheduler.schedule(function () { return subscriber.complete(); }));
                    }));
                }, function (err) {
                    sub.add(scheduler.schedule(function () { return subscriber.error(err); }));
                });
            }));
            return sub;
        });
    }
}
function fromPromise ( input , scheduler ) { if ( ! scheduler ) { return new _Observable__WEBPACK_IMPORTED_MODULE_0__ [ "Observable" ] ( Object ( _util_subscribeToPromise__WEBPACK_IMPORTED_MODULE_2__ [ "subscribeToPromise" ] ) ( input ) ) ; } else { return new _Observable__WEBPACK_IMPORTED_MODULE_0__ [ "Observable" ] ( function ( subscriber ) { var sub = new _Subscription__WEBPACK_IMPORTED_MODULE_1__ [ "Subscription" ] ( ) ; sub . add ( scheduler . schedule ( function ( ) { return input . then ( function ( value ) { sub . add ( scheduler . schedule ( function ( ) { subscriber . next ( value ) ; sub . add ( scheduler . schedule ( function ( ) { return subscriber . complete ( ) ; } ) ) ; } ) ) ; } , function ( err ) { sub . add ( scheduler . schedule ( function ( ) { return subscriber . error ( err ) ; } ) ) ; } ) ; } ) ) ; return sub ; } ) ; } }
PURE_IMPORTS_START _Observable,_Subscription,_util_subscribeToPromise PURE_IMPORTS_END
PURE_IMPORTS_START _Observable _Subscription _util_subscribeToPromise PURE_IMPORTS_END