public join(timeoutMillis as Int) as Void:
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.
| Parameter | Description |
|---|---|
timeoutMillis | Maximum wait duration in milliseconds. |
worker.start() worker.join(500)