Returns the name of the current thread. If run from the interactive window, it will always return "Main" because the interactive window runs in the Main thread. This can be very helpful if you'd like your code to behave slightly differently depending on which thread it is running in.
Get the name of the current thread.
For internal use only. The THREAD_GET() function returns the name of the current thread.
Desktop applications only.