run Wait All Callbacks
Blocks the current thread to run all queued callbacks. If no callback is queued, the method will block for the given timeout or until a callback becomes available. This method returns once the queue has been emptied.
Parameters
timeout
The length of time to block.