Consumer

data class Consumer(val channel: Channel, val tag: String)

Constructors

Link copied to clipboard
fun Consumer(channel: Channel, tag: String)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
suspend fun cancel(noWait: Boolean = false)

Cancel this consumer.

Link copied to clipboard
suspend fun wait()

Suspends until this consumer has been cancelled.

Link copied to clipboard
fun waitAsync(): Deferred<Unit>

Properties

Link copied to clipboard
Link copied to clipboard
val deliveries: SharedFlow<Delivery>
Link copied to clipboard
val scope: CoroutineScope
Link copied to clipboard
val tag: String

Extensions

Link copied to clipboard
inline fun Consumer.forEach(scope: CoroutineScope = this.scope, noinline block: suspend (Delivery) -> Unit): Job