Package-level declarations
Functions
Link copied to clipboard
inline fun <NF, NS, F, S> NetworkEither<NF, NS>.toResource(failure: (NetworkEither.Failure<NF>) -> ResourceEither<F, S>, success: (NetworkEither.Success<NS>) -> ResourceEither<F, S>): ResourceEither<F, S>
Map a NetworkEither
to ResourceEither
with the network Failure
and Success
as lambda params
inline fun <NF, NS, F, S> NetworkEither<NF, NS>.toResource(httpError: (NetworkEither.Failure.Http<NF>) -> F, localError: () -> F, remoteError: () -> F, unknownError: (Throwable) -> F, success: (NetworkEither.Success<NS>) -> S, isLoading: Boolean = false): ResourceEither<F, S>
Map a NetworkEither
to ResourceEither
with network Failure
and Success
unwrapped as lambda params