Delphi XE10 Task Gets the current thread
Required under the function currently running
TThread.CurrentThread.ThreadID;