arrow-core-data / arrow.core / Validated / catch
@JvmStatic @JvmName("tryCatch") inline fun <A> catch(f: () -> A): Validated<Throwable, A>
suspend fun <A> ~~catch~~(f: suspend () -> A): Validated<Throwable, A>
Deprecated: Use the inline version. Hidden for binary compat
@JvmStatic @JvmName("tryCatch") inline fun <E, A> catch(recover: (Throwable) -> E, f: () -> A): Validated<E, A>
Do you like Arrow?
✖