https://toitlang.org/ logo
Why are you creating the task in the loop? If you ...
# general
k
Why are you creating the task in the loop? If you want to - or need to - avoid having multiple concurrent tasks that do whatever the task in the loop does, you might be able to just run the code directly from the loop without creating a task for it. If you want to have some amount of concurrency - but need to limit it - it would be possible to have a small pool of tasks or simply wait in the loop before creating another task.