Now with this Solution :
- your Main thread Should Wait until your wait function finsh her work without freezing the entire App using the stupid Sleep function !!!
- other Threads that are runing outside your MainThread (they still could work without Any Problem!!)
- using the method ExecuteWork from ITask we can force the main thread App to wait until Our Task_Thread finish work
- the method ExecuteWork from ITask: (runs the task in the calling thread = the main App thread) and this like inject or create Smooth Thread inside the MainAppThread and this what we looking for ...
please don't use it and read this here: https://en.delphipraxis.net/topic/9316-delphi-thread-itaskexecutework-not-wait-until-task-finish-in-mobile-devices/ and here: https://stackoverflow.com/questions/76569871/delphi-thread-itask-executework-not-wait-until-task-finish-in-mobile-devices