Package-level declarations
Types
Link copied to clipboard
A wrapper for data that is exposed via a LiveData that represents an event.
Link copied to clipboard
interface StringDecoder
Interface representing a string decoder.
Link copied to clipboard
Implementation of StringDecoder that uses Android's Uri.decode method for decoding strings.
Link copied to clipboard
Functions
Link copied to clipboard
inline fun <ResultType, RequestType> networkBoundResource(crossinline query: () -> Flow<ResultType>, crossinline fetch: suspend () -> RequestType, crossinline saveFetchedResult: suspend (RequestType) -> Unit, crossinline shouldFetch: (ResultType) -> Boolean = { true }): Flow<Resource<ResultType>>
Creates a network-bound resource flow that performs a query and fetches new data if necessary.
Link copied to clipboard
inline suspend fun <T> suspendCoroutineWithTimeout(timeMillis: Long, crossinline block: (CancellableContinuation<T>) -> Unit): T
inline suspend fun <T> suspendCoroutineWithTimeout(timeout: Duration, crossinline block: (Continuation<T>) -> Unit): T
Suspends the current coroutine until the specified block is completed or the timeout is reached.
Link copied to clipboard