klyn.threading.Thread.state
property
public readonly property state as String
Description

Current lifecycle state.

WAITING describes an acknowledged cooperative pause or an indefinite join; TIMED_WAITING describes sleep or timed join. TERMINATED is reported only after the worker has left user code and completed runtime cleanup.

Example

print(worker.state)