Ask for suggestions about background tasks
-
Hi !
I’ve the need to handle some time (and resource) consuming background task in our app.
I’ve the need to allow user to navigate from page to page, but having a little indicator on the top [in the main layout file] that show progression of what is happening behind scenes.
The problem is not here.
The problem is HOW to keep a long task running in background in a quasar app.
I could use a boot file to start the task, but I need to avoid UI blocks.
If any, could you sdhare with me any suggestions?
-
@realtebo try to reasearch about web workers. Those run on separate thread.
-
Here’s an solution to offload expensive task to web workers:
https://forum.quasar-framework.org/topic/6840/web-workers-how-to-use-in-quasar?_=1601124878660