What is the best practice for asynchronously loading component data?

I tried both, I found it made no difference, it was the last thing I did after I posted the link. :man_shrugging:

I guess I was kind of just was wondering if it would also work? When I pushed it to like 100 elements it hangs while starting all of those background tasks.

Also, yes, my initial impulse was to create some kind of task stack to run through, with callbacks and raising events and all that, but then I decided to keep it as simple as I could to show off timers and background tasks if a new user wanted to clone it.

You could even create a background task to scroll through a list of tasks to monitor the other background tasks, using the task state of this ‘meta task’ to communicate the ID of each task and whether it was finished or not, using something like .task_state[task_id] :exploding_head:

1 Like