setState

open fun setState(@NonNull threadState: Thread.State)

Sets the state of thread (from java.lang.Thread)