I want to know about c# asyncronus programming
Loading
I want to know about c# asyncronus programming
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Cynthia SathuragiriPosted Sep 18, 2025, 5:22 AM
C# asynchronous programming lets your program do other work while it’s waiting for something slow (like downloading data or reading a file) instead of freezing and waiting.
use the keywords async and await make this work.
using System;
using System.Threading.Tasks;
class Program
{
static async Task Main()
{
Console.WriteLine("Start");
// Call an async method
await DoWorkAsync();
Console.WriteLine("End");
}
static async Task DoWorkAsync()
{
Console.WriteLine("Working...");
await Task.Delay(2000); // pretend to wait for 2 seconds (like downloading data)
Console.WriteLine("Work finished!");
}
}
Jignesh KumarPosted Sep 18, 2025, 3:02 AM
Hello Kabilan,
Please refer to this article Asyncronus programming