Dr. Friedrich 8/21/2022

Why is `async void` Wrong and What To Do Instead?

Read Original

This technical article details why using `async void` methods in C# is problematic, covering issues like unobservable execution and dangerous exception handling. It explains the original intent for event handlers and offers better practices and alternatives for writing robust asynchronous code.

Why is `async void` Wrong and What To Do Instead?

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser