Buckets:
| import { Observable } from '../Observable'; | |
| import { innerFrom } from './innerFrom'; | |
| import { EMPTY } from './empty'; | |
| export function using(resourceFactory, observableFactory) { | |
| return new Observable(function (subscriber) { | |
| var resource = resourceFactory(); | |
| var result = observableFactory(resource); | |
| var source = result ? innerFrom(result) : EMPTY; | |
| source.subscribe(subscriber); | |
| return function () { | |
| if (resource) { | |
| resource.unsubscribe(); | |
| } | |
| }; | |
| }); | |
| } | |
| //# sourceMappingURL=using.js.map |
Xet Storage Details
- Size:
- 580 Bytes
- Xet hash:
- a7dff867805afbf5392a177a9a0a34e18292be22518fcbc16d6324dd43622445
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.