ContainerContext

class ContainerContext<S : Any, SE : Any>(val settings: RealSettings, val postSideEffect: suspend (SE) -> Unit, getState: () -> S, val reduce: suspend ((S) -> S) -> Unit, val subscribedCounter: SubscribedCounter)

Constructors

Link copied to clipboard
constructor(settings: RealSettings, postSideEffect: suspend (SE) -> Unit, getState: () -> S, reduce: suspend ((S) -> S) -> Unit, subscribedCounter: SubscribedCounter)

Functions

Link copied to clipboard
suspend fun <O : Operator<*, *>, T> ContainerContext<*, *>.withIdling(operator: O, block: suspend O.() -> T): T
suspend fun <STATE : Any, SIDE_EFFECT : Any> ContainerContext<STATE, SIDE_EFFECT>.withIdling(registerIdling: Boolean, block: suspend ContainerContext<STATE, SIDE_EFFECT>.() -> Unit)
Link copied to clipboard
suspend fun <O : Operator<*, *>, T> ContainerContext<*, *>.withIdlingFlow(operator: O, block: suspend O.() -> Flow<T>): Flow<T>

Properties

Link copied to clipboard
val postSideEffect: suspend (SE) -> Unit
Link copied to clipboard
val reduce: suspend ((S) -> S) -> Unit
Link copied to clipboard
Link copied to clipboard
val state: S
Link copied to clipboard