Thread.join

Waits for this thread to complete. If the thread terminated as the result of an unhandled exception, this exception will be rethrown.

class Thread
final
Throwable
join
(
bool rethrow = true
)

Parameters

rethrow
Type: bool

Rethrow any unhandled exception which may have caused this thread to terminate.

Return Value

Type: Throwable

Any exception not handled by this thread if rethrow = false, null otherwise.

Throws

ThreadException if the operation fails. Any exception not handled by the joined thread.

Suggestion Box / Bug Report