0

How can I use Sleep in sandbox? Maybe it's impossible?

Sleep in sandbox for C#

25th Jan 2018, 5:04 AM
Lucigenius
Lucigenius - avatar
1 Resposta
0
Hello, I think it is not possible. It seems that output window is show after application end... So, the Thread.Sleep is used but not visible for you. This example works: for (int i = 0; i < 10; i++) { Console.WriteLine(i); Thread.Sleep(300); } but it work only on background and you will see only whole output after application finish.
1st Jul 2018, 4:39 PM
Michal Grznár