peekState

Peek the current state of the state machine. The current state could change immediately after it is returned.

Also no state could be set yet, in which case this method will block. Use useState for a suspending alternative.

If any actions are taken based on the current state that affect the state machine you should not use this method.

If your code relies on the state not changing use useState. If you want to change the state based on the current state use takeAndChangeState

Return

the current State of the StateRepo