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