waits for while queue is NOT empty