@linkedin @Link @Link2
1 results for await
  • C# and .NET Framework (4.5 & Core) supports asynchronous programming using some native functions, classes, and reserved keywords. Before we see what is asynchronous programming, let’s understand what is synchronous programming using the following console example. static void Main(string[] args) { LongProcess(); ShortProcess(); } static void LongProcess() { Console.WriteLine("LongProcess Started"); //some code that takes long execution time System.Threading.Thread.Sleep(4000); // hold execution for 4 seconds Console.WriteLine("LongProcess Completed"); } static void ShortProcess() { Console.
    csharp async await task Created Wed, 03 May 2023 19:14:52 +0300