hold
abstract suspend fun hold(queue: HoldQueue, priority: Int = PRIORITY, suspensionName: String? = null)
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
a priority for the queue discipline if needed
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.