tripkit-android / com.skedgo.rxtry / toTrySingle
toTrySingle
fun <T> toTrySingle(predicate: (
Throwable
) ->
Boolean
): SingleTransformer<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> toTrySingle(): SingleTransformer<T,
Try
<T>>
Wraps any error from the upstream into Failure while events emitted via rx.Observer.onNext will be wrapped into Success.