shareIn

fun shareIn(scope: CoroutineScope): FlowReduxStateMachine<SharedFlow<S>, A>

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

This variation is useful for tests where the value conflation of StateFlow can lead to flakiness.

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