aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/rxjs/dist/esm5/internal/observable/using.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/rxjs/dist/esm5/internal/observable/using.js')
-rw-r--r--node_modules/rxjs/dist/esm5/internal/observable/using.js17
1 files changed, 0 insertions, 17 deletions
diff --git a/node_modules/rxjs/dist/esm5/internal/observable/using.js b/node_modules/rxjs/dist/esm5/internal/observable/using.js
deleted file mode 100644
index 6e244cc..0000000
--- a/node_modules/rxjs/dist/esm5/internal/observable/using.js
+++ /dev/null
@@ -1,17 +0,0 @@
-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 \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage