Sha256: 677add3df3eb1fa930a4f09782c42d25b47141697bc9316c89d36408ad45e7a5

Contents?: true

Size: 782 Bytes

Versions: 49

Compression:

Stored size: 782 Bytes

Contents

/** PURE_IMPORTS_START .._Subscriber,.._symbol_rxSubscriber,.._Observer PURE_IMPORTS_END */
import { Subscriber } from '../Subscriber';
import { rxSubscriber as rxSubscriberSymbol } from '../symbol/rxSubscriber';
import { empty as emptyObserver } from '../Observer';
export function toSubscriber(nextOrObserver, error, complete) {
    if (nextOrObserver) {
        if (nextOrObserver instanceof Subscriber) {
            return nextOrObserver;
        }
        if (nextOrObserver[rxSubscriberSymbol]) {
            return nextOrObserver[rxSubscriberSymbol]();
        }
    }
    if (!nextOrObserver && !error && !complete) {
        return new Subscriber(emptyObserver);
    }
    return new Subscriber(nextOrObserver, error, complete);
}
//# sourceMappingURL=toSubscriber.js.map

Version data entries

49 entries across 49 versions & 4 rubygems

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