C# Asynchronous Thread Sleep and Blocking

2019年12月6日 98点热度 4人点赞 1条评论
内容目录

In asynchronous methods, you cannot directly use

Thread.Sleep(1000);

You should use

await Task.Delay(1000);

痴者工良

高级程序员劝退师

文章评论