Waits for the thread to terminate and returns the exit status.
Source position: classesh.inc line 1706
public function TThread.WaitFor: Integer;