hugoWebsite/node_modules/rxjs/dist/cjs/internal/operators/finalize.js

16 lines
437 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.finalize = void 0;
var lift_1 = require("../util/lift");
function finalize(callback) {
return lift_1.operate(function (source, subscriber) {
try {
source.subscribe(subscriber);
}
finally {
subscriber.add(callback);
}
});
}
exports.finalize = finalize;
//# sourceMappingURL=finalize.js.map