toggle menu
core
2.0.0-beta01
common
switch theme
search in API
core
/
pro.respawn.apiresult
/
tryRecoverIf
try
Recover
If
inline
fun
<
T
>
ApiResult
<
T
>
.
tryRecoverIf
(
condition
:
(
Exception
)
->
Boolean
,
block
:
(
Exception
)
->
T
)
:
ApiResult
<
T
>
Recover from an
Error
only if the
condition
is true, else no-op. Does not affect
Loading
See also
recover
If