Nesting await in Parallel.ForEach [duplicate]

svick’s answer is (as usual) excellent. However, I find Dataflow to be more useful when you actually have large amounts of data to transfer. Or when you need an async-compatible queue. In your case, a simpler solution is to just use the async-style parallelism: var ids = new List<string>() { “1”, “2”, “3”, “4”, “5”, … Read more