wishthis/node_modules/rxjs/dist/esm/internal/operators/finalize.js

12 lines
300 B
JavaScript
Raw Normal View History

2022-04-07 07:06:43 +00:00
import { operate } from '../util/lift';
export function finalize(callback) {
return operate((source, subscriber) => {
try {
source.subscribe(subscriber);
}
finally {
subscriber.add(callback);
}
});
}
//# sourceMappingURL=finalize.js.map