removeAndResume

fun removeAndResume(entity: ProcessModel.Entity, resumePriority: Int = ProcessModel.RESUME_PRIORITY, waitStats: Boolean = true)(source)

Removes the entity from the queue and tells it to resume its process

Parameters

entity

the entity to remove from the queue. It must be in the queue; check contains(entity) first.

resumePriority

the priority for the resumption of the suspended process

waitStats

if true the waiting time statistics are collected on the usage of the queue