Embarcadero Delphi Running a thread while keeping GUI responsive Responsive GUI using threads for background work and PostMessage to report back from the threads
https://riptutorial.com/delphi/example/11592/responsive-gui-using-threads-for-background-work-and-postmessage-to-report-back-from-the-threads
Retrieving updated TDataSet data in a background thread
https://riptutorial.com/delphi/topic/4114/retrieving-updated-tdataset-data-in-a-background-thread