C
C#3y 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 User3y ago
Message Not Public
Sign In & Join Server To View
Accord
Accord3y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server