*Wait variants of Queue functions to wait until the block completes.

[ADDED]     PearlMainQueueWait, PearlNotMainQueueWait.