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