MultiProducerChannel

class MultiProducerChannel<T>(producerCount: Long, channel: Channel<T>, name: String) : ChannelMessageQueue<T>

A channel designed for use with a fixed amount of producers. Close will be called on the underlying channel, when there are no remaining registered producers.

Constructors

Link copied to clipboard
constructor(producerCount: Long, channel: Channel<T>, name: String)

Properties

Link copied to clipboard
val channel: Channel<T>

Functions

Link copied to clipboard
open suspend override fun close()
Link copied to clipboard
inline suspend fun CloseableCoroutine.closeFinally(cause: Throwable?)
Link copied to clipboard
open override fun consume(): Flow<T>
Link copied to clipboard
open override fun isClosedForPublish(): Boolean
Link copied to clipboard
open suspend override fun poll(): T?
Link copied to clipboard
open suspend override fun publish(message: T)