tripkit-android / com.skedgo.rxtry / toTryObservable
toTryObservable
fun <T> toTryObservable(predicate: (
Throwable
) ->
Boolean
): ObservableTransformer<T,
Try
<T>>
Wraps any error from the upstream which matches predicate into Failure while events emitted via rx.Observer.onNext will be wrapped into Success.
fun <T> toTryObservable(): ObservableTransformer<T,
Try
<T>>
Wraps any error from the upstream into Failure while events emitted via rx.Observer.onNext will be wrapped into Success.