klyn.threading.Thread.Thread
constructor
public Thread(runnable as Runnable):
Description

Creates a thread that executes the supplied runnable.

The thread receives an auto-generated name derived from its unique id. A null runnable creates a thread whose run() method performs no work.

Parameters
ParameterDescription
runnableWork executed when the thread starts.
Example

worker = Thread(task) worker.start() worker.join()