Returns true immediately if the thread is done; otherwise waits up to millisecondsToWait for the thread to finish, then returns false if the thread is not done yet.
public bool IsThreadDoneWait( intmillisecondsToWait );
Parameters
millisecondsToWait
Number of milliseconds to wait, if the thread is not done yet.