Eat cancellation exceptions from WaitAsync in Parallel.ForEachAsync (#66712)
We can safely ignore cancellation exceptions due to WaitAsync being canceled. They do not represent work that was started and interrupted, and we know exactly the source of the exception (as compared to if the exception emerged from either MoveNextAsync or the loop body).
Showing
想要评论请 注册 或 登录