Microsoft Deployment Toolkit
Documentation Library HRESULT Wait(DWORD waitMilliseconds)
This
method mainly helps with unit tests so the test can ensure that
tasks finish before the unit test exits. You would not normally
call this method. It returns either when all tasks finish running
or the wait time has elapsed.