Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# wait seconds

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

//Both are valid options but Task.Delay() can be used with the async keyword
 
PREVIOUS NEXT
Tagged: #wait #seconds
ADD COMMENT
Topic
Name
1+5 =