Number 1 is correct; Parallel.ForEach does not return until the loop has completed. If you don’t want that behavior, you can simply execute your loop as a Task and run it on another thread.
Number 1 is correct; Parallel.ForEach does not return until the loop has completed. If you don’t want that behavior, you can simply execute your loop as a Task and run it on another thread.