The program starts three tasks, combines them with Task.WhenAll, then awaits the shared Task inside try/catch and afterward prints its final state. It is necessary to determine the exact output in stdout.
await for Task.WhenAll if there are multiple failures inside the set of tasks.Status, IsFaulted, and the contents of Exception on the already completed shared Task.dotnet run
catch around await;Task remained in after completion;Task.WhenAll's Exception and what types they are..NET 8.0.0C# 12dotnet runTask.Delay, multithreaded races, or scheduler order; all tasks are already completed by the time Task.WhenAll is called, so the output is deterministicClick a line and write what it prints. Explanation is optional.