finalize.js 437 B

12345678910111213141516
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.finalize = void 0;
  4. var lift_1 = require("../util/lift");
  5. function finalize(callback) {
  6. return lift_1.operate(function (source, subscriber) {
  7. try {
  8. source.subscribe(subscriber);
  9. }
  10. finally {
  11. subscriber.add(callback);
  12. }
  13. });
  14. }
  15. exports.finalize = finalize;
  16. //# sourceMappingURL=finalize.js.map