aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/rxjs/dist/esm5/internal/operators/multicast.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/rxjs/dist/esm5/internal/operators/multicast.js')
-rw-r--r--node_modules/rxjs/dist/esm5/internal/operators/multicast.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/rxjs/dist/esm5/internal/operators/multicast.js b/node_modules/rxjs/dist/esm5/internal/operators/multicast.js
new file mode 100644
index 0000000..9bea366
--- /dev/null
+++ b/node_modules/rxjs/dist/esm5/internal/operators/multicast.js
@@ -0,0 +1,13 @@
+import { ConnectableObservable } from '../observable/ConnectableObservable';
+import { isFunction } from '../util/isFunction';
+import { connect } from './connect';
+export function multicast(subjectOrSubjectFactory, selector) {
+ var subjectFactory = isFunction(subjectOrSubjectFactory) ? subjectOrSubjectFactory : function () { return subjectOrSubjectFactory; };
+ if (isFunction(selector)) {
+ return connect(selector, {
+ connector: subjectFactory,
+ });
+ }
+ return function (source) { return new ConnectableObservable(source, subjectFactory); };
+}
+//# sourceMappingURL=multicast.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