Is it possible to “await yield return DoSomethingAsync()”

前端 未结 9 933
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-27 14:08

Are regular iterator blocks (i.e. \"yield return\") incompatible with \"async\" and \"await\"?

This gives a good idea of what I\'m trying to do:

asyn         


        
9条回答
  •  粉色の甜心
    2020-11-27 14:46

    There was a plan to do

    https://github.com/dotnet/csharplang/issues/43

    But currently it not possible

提交回复
热议问题