launchIn

fun launchIn(scope: CoroutineScope): FlowReduxStateMachine<StateFlow<S>, A>

Create and start running a FlowReduxStateMachine that exposes a StateFlow. The state machine will stay active as long as the given scope is not cancelled.

Note: initializeWith and spec need to be called before this method.