wishthis/node_modules/rxjs/dist/esm5/internal/operators/materialize.js

17 lines
683 B
JavaScript
Raw Normal View History

2022-06-08 10:36:39 +00:00
import { Notification } from '../Notification';
import { operate } from '../util/lift';
import { createOperatorSubscriber } from './OperatorSubscriber';
export function materialize() {
return operate(function (source, subscriber) {
source.subscribe(createOperatorSubscriber(subscriber, function (value) {
subscriber.next(Notification.createNext(value));
}, function () {
subscriber.next(Notification.createComplete());
subscriber.complete();
}, function (err) {
subscriber.next(Notification.createError(err));
subscriber.complete();
}));
});
}
//# sourceMappingURL=materialize.js.map