removeNext

fun removeNext(): T?

Removes the next item from the queue according to the queue discipline that was specified. Returns a reference to the QObject representing the item that was removed

Automatically, collects the time in queue for the item and includes it in the time in queue response variable.

Automatically, updates the number in queue response variable.

Return

a reference to the QObject object, or null if the queue is empty