C# Async · 1 of 3
Tasks
AtomicRepsNavigation
How a C# program waits: tasks, awaiting, cancellation, and the failures each shape produces.
C# Async · 1 of 3
Tasks
C# Async · 2 of 3
Coordination
C# Async · 3 of 3
Deadlocks
var a = new object(); var b = new object();bool tookBoth = false;lock (a){ var other = Task.Run(() => { lock (b) { return Monitor.TryEnter(a, 200); } }); tookBoth = other.Result;}Console.WriteLine($"{tookBoth} done");Three of the 920 C# Async questions.
Keep going with C# Async, free