Package-level declarations
Functions
Link copied to clipboard
inline fun <ResultType, RequestType> Flow<ResultType?>.mapToResource(crossinline transform: (ResultType) -> RequestType, failure: Failure? = null): Flow<Resource<Failure, RequestType>>
Link copied to clipboard
inline fun <ResultType, RequestType> networkBoundResource(crossinline query: () -> Flow<ResultType?>, crossinline fetch: suspend () -> RequestType, crossinline dbTransform: (ResultType) -> RequestType, crossinline shouldFetch: suspend () -> Boolean = { true }, crossinline saveFetchResult: suspend (RequestType) -> Unit): Flow<Resource<Failure, RequestType>>
Link copied to clipboard
inline fun <RequestType> networkResource(crossinline fetch: suspend () -> RequestType, crossinline shouldFetch: () -> Boolean = { true }): Flow<Resource<Failure, RequestType>>