wishthis/node_modules/rxjs/dist/cjs/internal/operators/materialize.js
2022-06-08 12:36:39 +02:00

21 lines
No EOL
885 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.materialize = void 0;
var Notification_1 = require("../Notification");
var lift_1 = require("../util/lift");
var OperatorSubscriber_1 = require("./OperatorSubscriber");
function materialize() {
return lift_1.operate(function (source, subscriber) {
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
subscriber.next(Notification_1.Notification.createNext(value));
}, function () {
subscriber.next(Notification_1.Notification.createComplete());
subscriber.complete();
}, function (err) {
subscriber.next(Notification_1.Notification.createError(err));
subscriber.complete();
}));
});
}
exports.materialize = materialize;
//# sourceMappingURL=materialize.js.map