Blog

How program will be executed?

public static async Task FirstAsyncTask() {
await Task.Run(() => {
for (int i = 0; i < 25; i++) {
Console.Write(” AsyncTask “);
}
});
}

public static void SecondTask() {
for (int i = 0; i < 10; i++) {
Console.Write(” SecondTask “);
}
}

class Program {
static void Main(string[] args) {
FirstAsyncTask();
SecondTask();
}
}