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 => (unit, state));