hold
abstract suspend fun hold(queue: HoldQueue, priority: Int = entity.priority, suspensionName: String? = null)(source)
Causes the process to hold indefinitely within the supplied queue. Some other process or event is responsible for removing the entities and causing them to proceed with their processes NOTE: The entity is not signaled to resume its process unless you signal it. The entity cannot remove itself. Some other construct must do the removal and resumption.
Parameters
queue
a queue to hold the waiting entities
priority
the priority for the queue discipline. The default is the entity's own priority. A priority supplied here is written to the entity and stays after the suspension.
suspension Name
the name of the hold. can be used to identify which hold the entity is experiencing if there are more than one hold suspension points within the process. The user is responsible for uniqueness.