reset

open fun reset(state: Session.State<F> = Pending, notifyListeners: Boolean = false)

Resets state and state history to the provided state.

Parameters

state

a Session.State to set. Pending by default

notifyListeners

whether to notify listeners (including await()) with the newly set state. false by default.