ObservableConvertibleType
public protocol ObservableConvertibleType
Type that can be converted to observable sequence (Observable<Element>).
-
Type of elements in sequence.
Declaration
Swift
associatedtype Element -
Converts
selftoObservablesequence.Declaration
Swift
func asObservable() -> Observable<Element>Return Value
Observable sequence that represents
self. -
asInfallible(onErrorJustReturn:Extension method) Convert to an
InfallibleDeclaration
Swift
func asInfallible(onErrorJustReturn element: Element) -> Infallible<Element>Return Value
-
asInfallible(onErrorFallbackTo:Extension method) Convert to an
InfallibleDeclaration
Swift
func asInfallible(onErrorFallbackTo infallible: Infallible<Element>) -> Infallible<Element>Parameters
onErroFallbackToFall back to this provided infallible on error
Return Value
-
asInfallible(onErrorRecover:Extension method) Convert to an
InfallibleDeclaration
Swift
func asInfallible(onErrorRecover: @escaping (Swift.Error) -> Infallible<Element>) -> Infallible<Element>Parameters
onErrorRecoverRecover with the this infallible closure
Return Value
View on GitHub
ObservableConvertibleType Protocol Reference