removeAllAndTerminate

fun removeAllAndTerminate(waitStats: Boolean = false, afterTermination: (entity: ProcessModel.Entity) -> Unit? = null)(source)

Removes and terminates every task waiting in the queue.

Parameters

waitStats

if true the waiting time statistics are collected. The default is false.

afterTermination

invoked once each process has been terminated