klyn.threading.Thread.join
method

    public join(timeoutMillis as Int) as Void:

Description

Waits up to a timeout in milliseconds.

The method returns as soon as the worker terminates; it does not wait for the complete timeout. A timeout of zero waits indefinitely, like `join()`. A prior call to `stop()` does not bypass the native completion wait.

Parameters

Parameter | Description
--- | ---
`timeoutMillis` | Maximum wait duration in milliseconds.

Throws

- ValueException if `timeoutMillis` is negative.

Example

worker.start() worker.join(500)