Publisher
extension Publisher
extension Publisher where Failure == RxBridgeFailure
-
A bridging operator that transforms a Combine
Publisher
into an RxSwiftObservable
.Declaration
Swift
public func bridgeToRx() -> Observable<Output>
Return Value
An observable that republishes the elements of an upstream Combine publisher
-
Raises a fatal error when an upstream
RxBridge
publisher’s buffer overflows and otherwise maps the failure type to theError
type of an upstreamObservable
.Use this operator at some point following the
RxBridge
operator if you can be sure that a buffer overflow will never occur.Declaration
Swift
public func assertBridgeBufferNeverOverflows() -> Publishers.MapError<Self, Error>
Return Value
A publisher with an Failure type that matches the
Error
type of an upstream bridgedObservable