receiveAll

fun <Error class: unknown class><out <Error class: unknown class>>.receiveAll(session: <Error class: unknown class><<Error class: unknown class>, Class<out Any>>, vararg sessions: <Error class: unknown class><<Error class: unknown class>, Class<out Any>>): Map<<Error class: unknown class>, <Error class: unknown class><Any>>

Suspends until a message has been received for each session in the specified sessions.

Consider receiveAll(receiveType: Class, sessions: List): List> when the same type is expected from all sessions.

Remember that when receiving data from other parties the data should not be trusted until it's been thoroughly verified for consistency and that all expectations are satisfied, as a malicious peer may send you subtly corrupted data in order to exploit your code.


fun <R : Any> <Error class: unknown class><out <Error class: unknown class>>.receiveAll(receiveType: Class<R>, session: <Error class: unknown class>, vararg sessions: <Error class: unknown class>): List<<Error class: unknown class><R>>
inline fun <R : Any> <Error class: unknown class><out <Error class: unknown class>>.receiveAll(session: <Error class: unknown class>, vararg sessions: <Error class: unknown class>): List<<Error class: unknown class><R>>

Suspends until a message has been received for each session in the specified sessions.

Consider sessions: Map>): Map> when sessions are expected to receive different types.

Remember that when receiving data from other parties the data should not be trusted until it's been thoroughly verified for consistency and that all expectations are satisfied, as a malicious peer may send you subtly corrupted data in order to exploit your code.