toggle menu
network-either-kmp
0.3.0-SNAPSHOT
common
switch theme
search in API
network-either
/
com.javiersc.network.either
/
NetworkEither
/
toEither
to
Either
inline
fun
<
L
,
R
>
toEither
(
crossinline
httpFailure
:
(
NetworkEither.Failure.Http
<
F
>
)
->
L
,
localFailure
:
(
)
->
L
,
remoteFailure
:
(
)
->
L
,
crossinline
unknownFailure
:
(
Throwable
)
->
L
,
crossinline
success
:
(
NetworkEither.Success
<
S
>
)
->
R
)
:
Either
<
L
,
R
>