I want some clarity on this. I know that Task.Delay
will internally use a Timer and it is obviously task-based (awaitable), whereas Thread.Sleep
will cause the thread to be blocked. However, does calling .Wait
on the task cause the thread to be blocked?
If not, one would assume that Task.Delay(2500).Wait()
is better than Thread.Sleep(2500)
. This is slightly different that the SO question/answer here as I'm calling .Wait()
.