Bug 918930 - Use .isSync to determine async vs sync in waitFor