materialize.js 885 B

123456789101112131415161718192021
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.materialize = void 0;
  4. var Notification_1 = require("../Notification");
  5. var lift_1 = require("../util/lift");
  6. var OperatorSubscriber_1 = require("./OperatorSubscriber");
  7. function materialize() {
  8. return lift_1.operate(function (source, subscriber) {
  9. source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
  10. subscriber.next(Notification_1.Notification.createNext(value));
  11. }, function () {
  12. subscriber.next(Notification_1.Notification.createComplete());
  13. subscriber.complete();
  14. }, function (err) {
  15. subscriber.next(Notification_1.Notification.createError(err));
  16. subscriber.complete();
  17. }));
  18. });
  19. }
  20. exports.materialize = materialize;
  21. //# sourceMappingURL=materialize.js.map