Answers for "how to make a wait for seconds in c#"

C#
1

c# wait seconds

//wait 2 seconds
Thread.Sleep(2000);
Task.Delay(2000);

//Both are valid options but I would recommend Task.Delay() as you can still use your UI while waiting
Posted by: Guest on December-08-2020

Code answers related to "how to make a wait for seconds in c#"

C# Answers by Framework

Browse Popular Code Answers by Language