Buckets:
| import { Subject } from '../Subject'; | |
| import { innerFrom } from '../observable/innerFrom'; | |
| import { operate } from '../util/lift'; | |
| import { fromSubscribable } from '../observable/fromSubscribable'; | |
| const DEFAULT_CONFIG = { | |
| connector: () => new Subject(), | |
| }; | |
| export function connect(selector, config = DEFAULT_CONFIG) { | |
| const { connector } = config; | |
| return operate((source, subscriber) => { | |
| const subject = connector(); | |
| innerFrom(selector(fromSubscribable(subject))).subscribe(subscriber); | |
| subscriber.add(source.subscribe(subject)); | |
| }); | |
| } | |
| //# sourceMappingURL=connect.js.map |
Xet Storage Details
- Size:
- 613 Bytes
- Xet hash:
- 04e14015360c5664fb4749094dcc172f6a560c360961fd5018c41f7772df4e6a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.