klyn.threading.Thread.join
method
public join() as Void
Description

Waits for completion.

This method returns immediately when the thread has not started. A stop request never bypasses waiting for actual native completion. Like C++ join, this wait is not cancelled by the caller's stop request.

Throws
  • IllegalStateException if the worker attempts to join itself.
Example

worker.start() worker.join()