Waiting | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8

Waiting

is there a wait statement or something like that?

1st Apr 2017, 6:42 PM
jason
jason - avatar
3 Answers
+ 15
There's Thread.Sleep(x), which pauses the console for x milliseconds. You have to write Using System.Threading; at the top of your code to use it. It doesn't work on the Code Playground, but it will on a computer.
1st Apr 2017, 7:02 PM
Tamra
Tamra - avatar
+ 6
There is Thread.Sleep(Int32) and for async task. await Task.Delay(Int32)
1st Apr 2017, 7:25 PM
Wen Qin
Wen Qin - avatar
1st Apr 2017, 7:03 PM
Igor B
Igor B - avatar