EventReceiver

Receiver for events of type E

Functions

Link copied to clipboard
suspend fun close()

Unsubscribes from the events

Link copied to clipboard
fun consumeAsFlow(): Flow<E>

Converts this receiver into Flow. The receiver is automatically closed after the flow is collected.

Link copied to clipboard
suspend fun receive(): E

Receives next event