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