10

Today has been a battle of async methods and foreach loops

Comments
  • 0
    Love async await :)
  • 0
    @viking8 I'm still far away from understanding it.
    I kept expecting await to wait for the asynchronous task to finished. Alas, that was not the case
  • 0
    In JavaScript you can push promises to an array and then wait for them all to finish their async task, pretty good for using async functions in loops, nothing similar in c#?
  • 0
    @nicholai Supposedly there's Task.WaitAll(), and that slowed it, but still fails to complete all the tasks 😂
  • 0
    The struggle is real
  • 0
    @itsdaniel0 it will wait for async Task, not async void methods.
  • 1
    @viking8 That was partly the issue. I'd never returned the Task 😂
    Too long looking at the screen...
Add Comment