This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Console.WriteLine(DateTime.Now); | |
//This block takes 1 second to run because all 5 tasks are running simultaneously | |
{ | |
// I would assume these all run IMMEDIATELY | |
var a = Task.Delay(1000); | |
var b = Task.Delay(1000); | |
var c = Task.Delay(1000); | |
var d = Task.Delay(1000); | |
var e = Task.Delay(1000); |