Sha256: bb004d6b195482d4c2267402be3a6fda6dad02f9040634d7b637591246b29a3c

Contents?: true

Size: 1.99 KB

Versions: 49

Compression:

Stored size: 1.99 KB

Contents

{"version":3,"file":"publish.js","sourceRoot":"","sources":["../../src/operators/publish.ts"],"names":[],"mappings":";AACA,wBAAwB,YAAY,CAAC,CAAA;AACrC,0BAA0B,aAAa,CAAC,CAAA;AAQxC,mCAAmC;AAEnC;;;;;;;;;;;;GAYG;AACH,iBAA8B,QAAiC;IAC7D,MAAM,CAAC,QAAQ;QACb,qBAAS,CAAC,cAAM,OAAA,IAAI,iBAAO,EAAK,EAAhB,CAAgB,EAAE,QAAQ,CAAC;QAC3C,qBAAS,CAAC,IAAI,iBAAO,EAAK,CAAC,CAAC;AAChC,CAAC;AAJe,eAAO,UAItB,CAAA","sourcesContent":["import { Observable } from '../Observable';\nimport { Subject } from '../Subject';\nimport { multicast } from './multicast';\nimport { ConnectableObservable } from '../observable/ConnectableObservable';\nimport { MonoTypeOperatorFunction, OperatorFunction, UnaryFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function publish<T>(): UnaryFunction<Observable<T>, ConnectableObservable<T>>;\nexport function publish<T>(selector: MonoTypeOperatorFunction<T>): MonoTypeOperatorFunction<T>;\nexport function publish<T, R>(selector: OperatorFunction<T, R>): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Returns a ConnectableObservable, which is a variety of Observable that waits until its connect method is called\n * before it begins emitting items to those Observers that have subscribed to it.\n *\n * <img src=\"./img/publish.png\" width=\"100%\">\n *\n * @param {Function} [selector] - Optional selector function which can use the multicasted source sequence as many times\n * as needed, without causing multiple subscriptions to the source sequence.\n * Subscribers to the given source will receive all notifications of the source from the time of the subscription on.\n * @return A ConnectableObservable that upon connection causes the source Observable to emit items to its Observers.\n * @method publish\n * @owner Observable\n */\nexport function publish<T, R>(selector?: OperatorFunction<T, R>): MonoTypeOperatorFunction<T> | OperatorFunction<T, R> {\n  return selector ?\n    multicast(() => new Subject<T>(), selector) :\n    multicast(new Subject<T>());\n}\n"]}

Version data entries

49 entries across 49 versions & 4 rubygems

Version Path
ilog-0.4.1 node_modules/rxjs/operators/publish.js.map
ilog-0.4.0 node_modules/rxjs/operators/publish.js.map
ilog-0.3.3 node_modules/rxjs/operators/publish.js.map
govuk_publishing_components-18.0.0 node_modules/rxjs/operators/publish.js.map
govuk_publishing_components-17.21.0 node_modules/rxjs/operators/publish.js.map
govuk_publishing_components-17.20.0 node_modules/rxjs/operators/publish.js.map
govuk_publishing_components-17.19.1 node_modules/rxjs/operators/publish.js.map
govuk_publishing_components-17.19.0 node_modules/rxjs/operators/publish.js.map
govuk_publishing_components-17.18.0 node_modules/rxjs/operators/publish.js.map
govuk_publishing_components-17.17.0 node_modules/rxjs/operators/publish.js.map
govuk_publishing_components-17.16.0 node_modules/rxjs/operators/publish.js.map
govuk_publishing_components-17.15.0 node_modules/rxjs/operators/publish.js.map
govuk_publishing_components-17.14.0 node_modules/rxjs/operators/publish.js.map
govuk_publishing_components-17.13.0 node_modules/rxjs/operators/publish.js.map
govuk_publishing_components-17.12.2 node_modules/rxjs/operators/publish.js.map
govuk_publishing_components-17.12.1 node_modules/rxjs/operators/publish.js.map
govuk_publishing_components-17.12.0 node_modules/rxjs/operators/publish.js.map
govuk_publishing_components-17.11.0 node_modules/rxjs/operators/publish.js.map
govuk_publishing_components-17.10.0 node_modules/rxjs/operators/publish.js.map
govuk_publishing_components-17.9.0 node_modules/rxjs/operators/publish.js.map