Buckets:

imerfanrajabee's picture
download
raw
574 Bytes
import { Observable } from '../Observable';
import { innerFrom } from './innerFrom';
import { EMPTY } from './empty';
export function using(resourceFactory, observableFactory) {
return new Observable((subscriber) => {
const resource = resourceFactory();
const result = observableFactory(resource);
const source = result ? innerFrom(result) : EMPTY;
source.subscribe(subscriber);
return () => {
if (resource) {
resource.unsubscribe();
}
};
});
}
//# sourceMappingURL=using.js.map

Xet Storage Details

Size:
574 Bytes
·
Xet hash:
9f431baefa1659159b9c1946be471f7aff681c89f2ee102b0e764b2aa9e8bdb8

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.