by pantalaimon · 3y ago · 0 comments
That way you can wait for n threads to finish work.
Blocks until n threads or n tasks have completed. Latter is useful in a threadpool context.