awaitState

suspend fun awaitState(): STATE(source)

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.