Terminate a thread.
Optional
A thread handle. Undefined will terminate the current thread.
Subject to security check, a task can only terminate threads created by itself, otherwise an error will be raised.
Generated using TypeDoc
Terminate a thread.