removeAndImmediateResume

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. It must be in the queue; check contains(entity) first.

waitStats

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