Sets the real current state in the [class@Dex.
StateMachine].
This may be used by transition callbacks to expose intermediate states while doing asynchronous work. state must be a valid
value in the state machine's enum type. This method may only be used while the transition callback is active.
| this |
a [struct@Dex.StateTransitionContext] |
| state |
the new state |