wait For Callback
Blocks the calling thread until a callback object is posted to the queue, and removes it.
Return
The callback object from the queue.
Blocks the calling thread until a callback object is posted to the queue, or null after the timeout has elapsed.
Return
A callback object from the queue if a callback has been posted, or null if the timeout has elapsed.
Parameters
timeout
The length of time to block in ms.