C# [C#] Thread.Sleep의 await(Task) 버전 pjc0247 2015. 10. 19. 17:32 static async void Foo() { Console.WriteLine("hello"); await Task.Delay(1000); Console.WriteLine("world"); // 1 초후에 출력됨 } static void Main(string[] args) { Foo(); while (true) { Console.Read(); } }