Is incrementing an Integer inside IAsyncEnumerable thread-safe in C#?

前端 未结 0 1255
失恋的感觉
失恋的感觉 2020-12-31 06:39

I am using the latest IAsyncEnumerable feature in C# and have the following code:

private async Task KeepStreaming()
{
    int someCounter = 0;
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题