Eple
Question regarding tasks
but in general await multiple times is kinda the wrong patternThe thought behind my original code is that the tasks will run in parallell, but the point of the
await usersTask
is to retrieve its results. Since it has been established that it will immediately return the result, then I think there's no problem.53 replies
Question regarding tasks
Especially the below part, as I think it contradicts somehow with your answer.
if you await a task that is already completed it returns immediately. You could await it several times on different threads and it would only return once it has the result (or is faulted).
53 replies
Question regarding tasks
Hey @ZZZZZZZZZZZZZZZZZZZZZZZZZ, thanks for your answer. I found this via google: https://stackoverflow.com/a/38306418/11436180, can I ask you for your thoughts?
53 replies