hugoWebsite/node_modules/rxjs/dist/esm/internal/operators/publish.js

7 lines
297 B
JavaScript
Raw Normal View History

2022-10-29 00:20:35 +02:00
import { Subject } from '../Subject';
import { multicast } from './multicast';
import { connect } from './connect';
export function publish(selector) {
return selector ? (source) => connect(selector)(source) : (source) => multicast(new Subject())(source);
}
//# sourceMappingURL=publish.js.map