awaitData

inline suspend fun <reified T : Transmission.Data> awaitData(): T(source)

The next data of type T, skipping data of other types. Fails, listing what arrived, if none does.


suspend fun <T : Transmission.Data> awaitData(type: KClass<T>): T(source)

The next data of type, skipping data of other types.