wishthis/node_modules/rxjs/dist/cjs/internal/operators/finalize.js
2022-04-07 09:06:43 +02:00

16 lines
No EOL
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