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

12 lines
306 B
JavaScript
Raw Normal View History

2022-10-29 00:20:35 +02:00
import { operate } from '../util/lift';
export function finalize(callback) {
return operate(function (source, subscriber) {
try {
source.subscribe(subscriber);
}
finally {
subscriber.add(callback);
}
});
}
//# sourceMappingURL=finalize.js.map