awaitState

open suspend override fun awaitState(): STATE

Return the next state received. This function will suspend if no states have been received.

Throws

if the most recent item was not a state.