Projection using async delegate/lambda

前端 未结 1 1922
太阳男子
太阳男子 2021-01-16 06:03

The following code will not compile against the Async CTP in Visual Studio 2010:

Enumerable.Range(1, 5).Select(async x =>
{
    await TaskEx.Delay(100);
          


        
相关标签:
1条回答
  • 2021-01-16 06:58

    Works in my LINQPad (VS11 Beta installed on the machine)

    enter image description here

    0 讨论(0)
提交回复
热议问题