Package-level declarations
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Filter a FetchFlow by isFinished, and map to the result.
Link copied to clipboard
inline fun <T : Any> FetchFlow<T>.flatMapFetching(crossinline transform: suspend () -> Fetch<T>): FetchFlow<T>
Convenience function to apply flatMapFetching inside a Flow.
Link copied to clipboard
Link copied to clipboard
inline fun <T : Any> FetchFlow<T>.flatMapInitial(crossinline transform: suspend () -> Fetch<T>): FetchFlow<T>
Convenience function to apply flatMapInitial inside a Flow.
Link copied to clipboard
inline fun <T : Any> FetchFlow<T>.mapFetchingToFinished(crossinline transform: suspend () -> T): FetchFlow<T>
Convenience function to apply mapFetchingToFinished inside a Flow.
Link copied to clipboard
Link copied to clipboard
inline fun <T : Any> FetchFlow<T>.mapInitialToFinished(crossinline transform: suspend () -> T): FetchFlow<T>
Convenience function to apply mapToFinished inside a Flow.
Link copied to clipboard
inline fun <In : Any, Out : Any> FetchFlow<In>.mapToFinished(crossinline initial: suspend () -> Out, crossinline fetching: suspend () -> Out, crossinline finished: suspend (result: In) -> Out): Flow<Fetch.Finished<Out>>
Convenience function to apply mapFetchingToFinished inside a Flow.
Link copied to clipboard
fun <T : Any> FetchFlow<T>.onEachFetch(initial: suspend Fetch.Initial.() -> Unit = {}, fetching: suspend Fetch.Fetching.() -> Unit = {}, fetched: suspend Fetch.Finished<T>.(T) -> Unit = {}): FetchFlow<T>
Perform non-mutating actions according to Fetch state on each flow emission.