klyn.threading.Thread.currentThread
property
public static readonly property currentThread as Thread:
Description

Returns the current logical thread.

Worker threads return their own Thread instance. Calls made outside a Klyn worker return the logical main thread.

Example

current = Thread.currentThread print(current.name)