StateAsync<S, A>.flatten constructor
StateAsync<S, A>.flatten (
- StateAsync<
S, StateAsync< stateS, A> >
Flat a StateAsync contained inside another StateAsync to be a single StateAsync.
Implementation
factory StateAsync.flatten(StateAsync<S, StateAsync<S, A>> state) =>
state.flatMap(identity);