ApiResult
Toggle table of contents
common
Platform filter
common
Switch theme
Search in API
ApiResult
core
/
pro.respawn.apiresult
/
mapEither
map
Either
inline
fun
<
T
,
R
>
ApiResult
<
T
>
.
mapEither
(
success
:
(
T
)
->
R
,
error
:
(
Exception
)
->
Exception
)
:
ApiResult
<
R
>
Map both
Error
and
Success
. Does not affect
Loading