I want to execute a background task and while the task is executing, the UI is unresponsive. Do you have a solution?
The setup is the following:
I’ve used the scheduler plugin to execute the task in background. The plugin calls a global method that handles the background task. The method downloads and stores on disk many images. The process can last a few minutes and during that time the UI is not really usable. By the way, the task does not update the GUI at all.
What I would like is to execute this task in its own thread. I’m wondering if the UI is slowed because the method executes in the javascript thread…
I don’t know if they do but it kinda make sense that methods run in 1 thread. You don’t want one method to set a global and use it further along the method and another method change it as well along the way.
This is just one example but I can think of many others.