StateAsync<S, A> constructor

const StateAsync<S, A>(
  1. Future<(A, S)> _run(
    1. S state
    )
)

Build a new StateAsync given a Future<(A, S)> Function(S).

Implementation

const StateAsync(this._run);