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