AnyObserverConvertible
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
public protocol AnyObserverConvertible : Subject where Self.Failure == Error
Represents a Combine Subject that can be converted to a RxSwift AnyObserver of the underlying Output type.
Note
This only works when the underlying Failure is Swift.Error, since RxSwift has no typed errors.-
Undocumented
Declaration
Swift
associatedtype Output
-
asAnyObserver()
Default implementationReturns a RxSwift
AnyObserver
wrapping the SubjectDefault Implementation
Returns a RxSwift AnyObserver wrapping the Subject
Declaration
Swift
func asAnyObserver() -> AnyObserver<Output>
Return Value
AnyObserver