Merge "Use waitForIdle() to wait for Threaded processing."