finally.js 597B

123456789101112131415
  1. "use strict";
  2. var finalize_1 = require('../operators/finalize');
  3. /**
  4. * Returns an Observable that mirrors the source Observable, but will call a specified function when
  5. * the source terminates on complete or error.
  6. * @param {function} callback Function to be called when source terminates.
  7. * @return {Observable} An Observable that mirrors the source, but will call the specified function on termination.
  8. * @method finally
  9. * @owner Observable
  10. */
  11. function _finally(callback) {
  12. return finalize_1.finalize(callback)(this);
  13. }
  14. exports._finally = _finally;
  15. //# sourceMappingURL=finally.js.map