Waits for this thread to complete. If the thread terminated as the result of an unhandled exception, this exception will be rethrown.
Rethrow any unhandled exception which may have caused this thread to terminate.
Any exception not handled by this thread if rethrow = false, null otherwise.
ThreadException if the operation fails. Any exception not handled by the joined thread.
See Implementation
Waits for this thread to complete. If the thread terminated as the result of an unhandled exception, this exception will be rethrown.