sendItems

open suspend fun <T : ModelElement.QObject> sendItems(collection: Collection<T>, blockingQ: BlockingQueue<T>, blockingPriority: Int = PRIORITY, suspensionName: String? = null)

This method will block (suspend) if the blocking queue is full. That is, if the blocking queue has reached its capacity. When space for the item becomes available, then the item is placed within the blocking queue.

Parameters

collection

the items being placed into the blocking queue

blockingQ

the blocking queue channel that holds the items

blockingPriority

the priority for the entity that must wait to send if the blocking queue is full

suspensionName

the name of the possible suspension point. This can be used by the entity to determine which send blocking it might be experiencing when blocked. It is up to the client to ensure the name is meaningful and possibly unique.