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