recoverIf

inline fun <R, T : R> CatchingResult<T>.recoverIf(test: (Throwable) -> Boolean, transform: (Throwable) -> R): CatchingResult<R>(source)

如果 test,对 T 进行 transform,返回新的成功 CatchingResult