ApiResult
Toggle table of contents
common
Platform filter
common
Switch theme
Search in API
ApiResult
core
/
pro.respawn.apiresult
/
recoverIf
recover
If
inline
fun
<
T
>
ApiResult
<
T
>
.
recoverIf
(
condition
:
(
Exception
)
->
Boolean
,
block
:
(
Exception
)
->
ApiResult
<
T
>
)
:
ApiResult
<
T
>
Recover from an
Error
only if the
condition
is true, else no-op. Does not affect
Loading
See also
try
Recover
If