Projection using async delegate/lambda

前端 未结 1 1923
太阳男子
太阳男子 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)
提交回复
热议问题