put method

StateAsync<S, Unit> put(
  1. S state
)

Set a new state and return nothing (Unit).

Implementation

StateAsync<S, Unit> put(S state) =>
    StateAsync((_) async => Tuple2(unit, state));