container
fun <STATE : Any, SIDE_EFFECT : Any> CoroutineScope.container(initialState: STATE, buildSettings: SettingsBuilder.() -> Unit = {}, onCreate: suspend SimpleSyntax<STATE, SIDE_EFFECT>.() -> Unit? = null): Container<STATE, SIDE_EFFECT>
Helps create a concrete container in a standard way.
Return
A Container implementation
Parameters
initialState
The initial state of the container.
buildSettings
This builder can be used to change the container's settings.
onCreate
The lambda to execute when the container is created. By default it is executed in a lazy manner when the container is first interacted with in any way.