recoverIf

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

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