Why this matters
Prevents deadlocks, thread pool starvation, and lost exceptions.
Await Tasks instead of blocking (no .Result or .Wait()); prefer async/await end-to-end and configure awaits appropriately.
Prevents deadlocks, thread pool starvation, and lost exceptions.
Side-by-side examples engineers can pattern-match during review.
var data = http.GetStringAsync(url).Result; // blocksvar data = await http.GetStringAsync(url);task.Wait();await task;From the same buckets as this rule.