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/finalize.js
2019-08-11 20:48:02 +02:00

20 lines
No EOL
616 B
JavaScript

import { Subscriber } from '../Subscriber';
import { Subscription } from '../Subscription';
export function finalize(callback) {
return (source) => source.lift(new FinallyOperator(callback));
}
class FinallyOperator {
constructor(callback) {
this.callback = callback;
}
call(subscriber, source) {
return source.subscribe(new FinallySubscriber(subscriber, this.callback));
}
}
class FinallySubscriber extends Subscriber {
constructor(destination, callback) {
super(destination);
this.add(new Subscription(callback));
}
}
//# sourceMappingURL=finalize.js.map