Talk: Async Part 2 - for architects, under the hood
This talk tackles some more advanced async topics.
- Async idioms - the "TAP" Task Asynchronous Pattern, when and when not to expose async APIs, the unexpected trouble with Task.Yield
- Integrating async into existing code - call sync from async and vice versa, user-defined awaitables
- Async codegen and perf - some small tweaks you can make, if performance analysis shows that an async method is in your critical path
For an architect or a library-author, I think you need to know a little more about the conventions and what's going on under the hood
- I gave this talk at NDC2012 in Oslo, Norway on 2012.06.06
- Watch video online
- Download slides.pptx [190k]
- Download script.docx [21k]
- Download source_code.zip [10k, requires VS2012 and Win8]
- Similar material elsewhere
- Stephen Toub blogged about "Should I expose asynchronous wrappers for synchronous methods"
- He also blogged about the converse "Should I expose SYNC wrappers for ASYNC methods"
- Together, these topics get to the heart of the interplay between sync and async in your code