3 ms·
Fixed! I believe this kind of copy-paste "last line effect" one of the most common errors in programming: https://hownot2code.com/2016/08/15/the-last-line-effe
by jiggawatts 5y ago
Fixed!
I believe this kind of copy-paste "last line effect" one of the most common errors in programming: https://hownot2code.com/2016/08/15/the-last-line-effect-typos-and-fun/ https://hownot2code.com/2016/08/15/the-last-line-effect-typo...
Task.WaitAll is the C# equivalent: https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.task.waitall https://docs.microsoft.com/en-us/dotnet/api/system.threading...
But it's not necessarily faster, there are corner cases where waiting for all tasks prevents some concurrent computations (e.g.: JSON parsing) from occurring.