MoleculeTurbine

interface MoleculeTurbine<T>

Functions

Link copied to clipboard
abstract suspend fun awaitError(): Throwable

Assert that the next event received was an error terminating the flow. If no events have been received, this function will suspend for up to timeout.

Link copied to clipboard
abstract suspend fun awaitEvent(): Event<T>

Assert that an event was received and return it. If no events have been received, this function will suspend for up to timeout.

Link copied to clipboard
abstract suspend fun awaitItem(): T

Assert that the next event received was an item and return it. If no events have been received, this function will suspend for up to timeout.