We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
摘抄自C# Task.Delay() 和 Thread.Sleep() 区别
Use Thread.Sleep when you want to block the current thread. 要阻止当前线程时,请使用Thread.Sleep。
Thread.Sleep
Use Task.Delay when you want a logical delay without blocking the current thread. 如果需要逻辑延迟而不阻塞当前线程,请使用Task.Delay。
Task.Delay