Tool for emptying the event queue. This will post an event and wait until the event clears the event queue.
block until the event queue is cleared.
method for inspecting the event queue.