StateAsync<S, A>.flatten constructor

StateAsync<S, A>.flatten(
  1. StateAsync<S, StateAsync<S, A>> state
)

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);