ContainerContext

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

Properties

Link copied to clipboard
val postSideEffect: suspend (SE) -> Unit
Link copied to clipboard
val reduce: suspend ((S) -> S) -> Unit
Link copied to clipboard
val settings: Container.Settings
Link copied to clipboard
val state: S
Link copied to clipboard
val subscribedCounter: SubscribedCounter

Extensions

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>