Ram M

Ram M

  • NA
  • 67
  • 14k

why this method doesn't output anything? I

Sep 23 2022 5:00 AM

why this method doesn't output anything? I did the same thing with the threads and it worked but this way doesn't wok. Do am I missing something?

foreach(var i in arr) 
            await Task.Run(() => {
                Task.Delay(i * 100);
                Console.WriteLine(i);
            });

 


Answers (2)