EDN Admin
Well-known member
Async involves some new concepts. Theyre not difficult; just unfamiliar. Over the past year Lucian Wischik has been watching how people use async/await in C# and VB. This series distils out the three top async patterns and anti-patterns.
Tips:
Slides and source code are available on Lucians blog.
View the full article
Tips:
- Async void is for top-level event-handlers only, and event-like things. Dont use it elsewhere in your code.
- Its crucial to distinguish CPU-bound work (should be done on threadpool) from IO-bound work (which neednt).
You can wrap events up in Task-returning APIs and await them. This can dramatically simplify code.
Slides and source code are available on Lucians blog.
![1064b47e981379ce0062a2b2eac4379b.gif](/proxy.php?image=http%3A%2F%2Ftest.computerhelp.forum%2Fdata%2FMetaMirrorCache%2F1064b47e981379ce0062a2b2eac4379b.gif&hash=9b274aa8896a490d01c74981d990d008)
View the full article