finalize.js 300 B

123456789101112
  1. import { operate } from '../util/lift';
  2. export function finalize(callback) {
  3. return operate((source, subscriber) => {
  4. try {
  5. source.subscribe(subscriber);
  6. }
  7. finally {
  8. subscriber.add(callback);
  9. }
  10. });
  11. }
  12. //# sourceMappingURL=finalize.js.map