.net core

在异步方法中不要用Thread.Sleep。因为会阻塞当前线程,也就是主线程。而要用 await Task.Delay()
posted @ 2022-10-28 11:35  C#实习生  阅读(161)  评论(0)    收藏  举报