KMarb 5 Posted August 25, 2022 I have some database operations that take 10-15 seconds sometimes, and so I'm researching how to create a local service to run those ops in a separate thread. The download service demo seems like a good place to learn, but it will not run on any of my devices. I will keep researching this and add notes here if I find the problem, but can someone enlighten me as to why this demo does not work? Share this post Link to post
KMarb 5 Posted August 26, 2022 Related question: TTask.Run seems like a very simple thing to implement, simpler than local service. And it looks like tasks created with TTask.Run run in a separate thread, so the UI does not get blocked. In my case, where I have some time-consuming things that need to get done (sending and receiving data from back end database), does TTask.Run make more sense than a local service? The big thing I'm unsure of: if my app moves to background, will the task continue to run and complete a 10-15 second transfer? Share this post Link to post