Dotnet Async Exception Pitfalls

Use when writing or reviewing C# that rethrows, wraps or logs exceptions, registers cancellation callbacks, uses ContinueWith, Lazy of Task, TaskCompletionSource, async lambdas or timers, ConcurrentDictionary.GetOrAdd factories, returns tasks from inside a using block, validates arguments in async or iterator methods, locks, event subscriptions, struct dictionary keys, Math.Round, DateTime to DateTimeOffset, Regex on untrusted input or Process.Start.

techmefr Updated

File contents

techmefr/mentis commit 9fb9f96b65

Frequently asked questions

npx get-skill add techmefr/dotnet-async-exception-pitfalls