Package-level declarations

Functions

Link copied to clipboard

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