How can I handle async task cancel when I'm calling it from while condition?

前端 未结 0 1012
深忆病人
深忆病人 2020-12-18 07:59

I have a loop like this inside a try-catch block:

try
{
    while ((receivedBytesCount = await tcpClient.GetStream().ReadAsync(rxBytes, 0, rxBytes.Length, tcp         


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