12 lines
306 B
JavaScript
12 lines
306 B
JavaScript
|
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
|