Capturing Exceptions on async operations

前端 未结 6 1211
滥情空心
滥情空心 2021-01-12 01:00

I\'m reading up more about async here: http://msdn.microsoft.com/en-us/library/hh873173(v=vs.110).aspx

Going through this example:

Task [         


        
6条回答
  •  北恋
    北恋 (楼主)
    2021-01-12 01:47

    Because Task.WhenAny(IEnumerable> tasks) returns a Task>. The outer task (the one created by the Task.WhenAny call) will complete when any of the tasks passed to it completes with the completed task as a result.

提交回复
热议问题