Advertisement
ja72

stackoverflow.com_q_64317858

Oct 12th, 2020
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.40 KB | None | 0 0
  1. class Program
  2. {
  3.     static void Main(string[] args)
  4.     {
  5.         Task.WaitAll(ShowMessages());
  6.     }
  7.  
  8.     static async Task ShowMessages()
  9.     {
  10.         Console.WriteLine("Hello There");
  11.         await Task.Delay(250);
  12.         Console.WriteLine("Thanks for seeing");
  13.         await Task.Delay(250);
  14.         Console.WriteLine("Hope anyone reply fast");
  15.         await Task.Delay(250);
  16.     }
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement