tripkit-android / com.skedgo.rxtry
Package com.skedgo.rxtry
Types
Name | Summary |
---|---|
Failure | data class Failure<T> : Try <T> |
Success | data class Success<T> : Try <T> |
Try | sealed class Try<T> |
Extensions for External Classes
Name | Summary |
---|---|
io.reactivex.Observable | |
io.reactivex.Single |
Functions
Name | Summary |
---|---|
toTryObservable | 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(predicate: ( Throwable ) -> Boolean ): ObservableTransformer<T, Try <T>> Wraps any error from the upstream into Failure while events emitted via rx.Observer.onNext will be wrapped into Success. fun <T> toTryObservable(): ObservableTransformer<T, Try <T>> |
toTrySingle | 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> toTrySingle(predicate: ( Throwable ) -> Boolean ): SingleTransformer<T, Try <T>> Wraps any error from the upstream into Failure while events emitted via rx.Observer.onNext will be wrapped into Success. fun <T> toTrySingle(): SingleTransformer<T, Try <T>> |