IAsyncEnumerable not working in C# 8.0 preview
问题 I was playing around with C# 8.0 preview and can't get IAsyncEnumerable to work. I tried the following public static async IAsyncEnumerable<int> Get() { for(int i=0; i<10; i++) { await Task.Delay(100); yield return i; } } I ended up using a Nuget package named AsyncEnumerator , but I'm getting the following error: Error CS1061 ' IAsyncEnumerable<int> ' does not contain a definition for ' GetAwaiter ' and no accessible extension method ' GetAwaiter ' accepting a first argument of type '