removeAndImmediateResume

fun removeAndImmediateResume(entity: ProcessModel.Entity, waitStats: Boolean = true)

Removes the entity from the queue and tells it to resume its process immediately, without being scheduled through the event loop. This may be useful to coordinate processes that occur at the same time.

Parameters

entity

the entity to remove from the queue

waitStats

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