C
C#2y ago
Mirrory

❔ run unknown amount of tasks for some time

I'm using a function async Task<stuff> which returns me an user interaction. Since many users could interact at the same time, how do I run multiple task in parallel without knowing how many for X amount of time? Doing
While(someTimerHandler){
myList.add(await GetUserInteraction())
}
While(someTimerHandler){
myList.add(await GetUserInteraction())
}
Would lose me data
2 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.