CacheableFlowWithNoInput

class CacheableFlowWithNoInput<TData, TError : Throwable>(coroutineScope: CoroutineScope, launchFlow: () -> Flow<TData?>, val cacheKey: CacheableInput.FlowInput, cache: OnHandCache, dispatcher: CoroutineDispatcher = Dispatchers.Default, ttl: Duration? = null, initialFetchState: FetchState = FetchState.IDLE)

Constructors

Link copied to clipboard
constructor(coroutineScope: CoroutineScope, launchFlow: () -> Flow<TData?>, cacheKey: CacheableInput.FlowInput, cache: OnHandCache, dispatcher: CoroutineDispatcher = Dispatchers.Default, ttl: Duration? = null, initialFetchState: FetchState = FetchState.IDLE)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
operator fun component1(): StateFlow<CacheableFlowResult<TData, TError>>
Link copied to clipboard
suspend fun launch(onEachSuccess: suspend (TData) -> Unit? = null, onError: suspend (TError) -> Unit? = null)