CacheableFlowWithInput
class CacheableFlowWithInput<TInput : CacheableInput.FlowInput, TData, TError : Throwable>(coroutineScope: CoroutineScope, launchFlow: (input: TInput) -> Flow<TData?>, startingCacheKey: TInput? = null, cache: OnHandCache, dispatcher: CoroutineDispatcher = Dispatchers.Default, ttl: Duration? = null, initialFetchState: FetchState = FetchState.IDLE, tryMarkActive: suspend (TInput) -> Boolean = { true }, markInactive: suspend (TInput) -> Unit = {})
Constructors
Link copied to clipboard
constructor(coroutineScope: CoroutineScope, launchFlow: (input: TInput) -> Flow<TData?>, startingCacheKey: TInput? = null, cache: OnHandCache, dispatcher: CoroutineDispatcher = Dispatchers.Default, ttl: Duration? = null, initialFetchState: FetchState = FetchState.IDLE, tryMarkActive: suspend (TInput) -> Boolean = { true }, markInactive: suspend (TInput) -> Unit = {})