You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made a loading page that works fine, but when I start using it with something, the whole UI gets blocked and stopped react until the background process finishes.
add_background_task is a misleading name, which is why we're deprecating it in the next version of Toga (#2678). It doesn't actually create a background thread, so your user interface will still freeze unless the task calls await frequently enough.
If you need to run some slow code which doesn't call await frequently enough, you'll need to put it in a thread. See #2099 (comment) for examples.
Describe the bug
I made a loading page that works fine, but when I start using it with something, the whole UI gets blocked and stopped react until the background process finishes.
Steps to reproduce
Expected behavior
The UI should behave smoothly in all situations when using
add_background_task
.Screenshots
Screen.Recording.1446-01-15.at.1.31.38.PM.mov
Environment
Logs
Additional context
No response
The text was updated successfully, but these errors were encountered: