handle Error With
Compose a recovering transform operation on the failure value Throwable whilst flattening Result.
See also
if you want run a function that catches and maps recovers with (Throwable) -> A.
Deprecated
This API is considered redundant. If this method is crucial for you, please let us know on the Arrow Github. Thanks! https://github.com/arrow-kt/arrow/issues Prefer the new recover API
Replace with
import arrow.core.recover
Content copied to clipboard
recover { a -> f(a).bind() }Content copied to clipboard
Deprecated
This API is niche and will be removed in the future. If this method is crucial for you, please let us know on the Arrow Github. Thanks! https://github.com/arrow-kt/arrow/issues Prefer using the orElse method
Replace with
import arrow.core.recover
Content copied to clipboard
recover { f(Unit).bind() }Content copied to clipboard