I want to know about c# asyncronus programming
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Cynthia SathuragiriRank #937 · 2.2K reputationPosted Sep 18, 2025, 1:22 AM EDT
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 KumarRank #91 · 22.9K reputationPosted Sep 17, 2025, 11:02 PM EDT
Hello Kabilan,
Please refer to this article Asyncronus programming