clear

open override fun clear()

Removes all of the elements from this queue. The queue will be empty after this call returns.

This implementation repeatedly invokes .poll until it returns null.