Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix race condition in TaskThrottler (#159)
We waited for tasks to complete inside the loop, which meant that if cancelation of the loop was requested while it was in the part of the code after that (for example waiting on the mutex), they would never be awaited. There is no real reason to wait inside the loop, we can just wait outside it, it is effectively the same.
- Loading branch information