ThreadBase.join

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

class ThreadBase
abstract
join
(
bool rethrow = true
)

Parameters

rethrow 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.

Meta