This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/rxjs/_esm2015/internal/operators/materialize.js

31 lines
946 B
JavaScript
Raw Normal View History

2019-08-11 18:48:02 +00:00
import { Subscriber } from '../Subscriber';
import { Notification } from '../Notification';
export function materialize() {
return function materializeOperatorFunction(source) {
return source.lift(new MaterializeOperator());
};
}
class MaterializeOperator {
call(subscriber, source) {
return source.subscribe(new MaterializeSubscriber(subscriber));
}
}
class MaterializeSubscriber extends Subscriber {
constructor(destination) {
super(destination);
}
_next(value) {
this.destination.next(Notification.createNext(value));
}
_error(err) {
const destination = this.destination;
destination.next(Notification.createError(err));
destination.complete();
}
_complete() {
const destination = this.destination;
destination.next(Notification.createComplete());
destination.complete();
}
}
//# sourceMappingURL=materialize.js.map