ThreadState
enumin packageklyn.threading
public enum ThreadState
ThreadState

Native lifecycle state names reported by Thread.state.

This is a standalone enum-like class to keep state values outside Thread. Pause requests become WAITING only when the worker cooperates; a stop request becomes TERMINATED only after actual completion.

Example
import klyn.threading
worker = Thread()
assert worker.state == ThreadState.NEW.name