Thread.join

Blocks the calling thread until the given thread completes.

class Thread
@nogc @safe
bool
join
(
uint timeout = 0
,
bool rethrow = false
)

Parameters

timeout uint

How long to wait for the thread to exit, 0 to wait forever.

rethrow bool

Whether exections should be rethrown into this thread.

Return Value

Type: bool

Whether the thread exited within the given time.

Meta