waitForEmpty

open fun waitForEmpty()