Easy Asynchrony with C#: No More Callbacks!
- Date: November 1, 2012 from 4:15PM to 5:15PM
- Day 3
- B92 Trident/Thunder
- 3-011
- Speakers: Mads Torgersen
- 68,348 Views
- 17 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
Slides (view online)Easy Asynchrony with C#: No More Callbacks! The Windows Runtime and .NET Framework 4.5 rely heavily on an asynchronous programming model to ensure the responsiveness of client apps and scalability of services. The new async feature in the C# and VB languagesmakes it easy to coordinate asynchronous functionality without callbacks, leaving the plumbing to the compilers. We’ll explore a simple sequential asynchronous Windows Store app, and build up to easily embrace cancellation, coordination of concurrent asynchronous activities and offloading of CPU-intensive work through the Task Parallel Library.
Already have a Channel 9 account? Please sign in
Follow the Discussion
This line is huuuuuuuge!
Great session! I don't suppose there is a session on how to unit test this cool code?
Great session!
Is it possible to get the source code which is demoed on this session?
Great session. Asynchrony is here to stay. In WinRT, 15% of the API calls are asynchronous--and the important ones at that.
In my view, asynchrony will create/enable/force the next major paradigm shift in software development:
http://www.pursuitofgreatdesign.com/2011/11/why-is-next-major-paradigm-shift-in.html
I wrote this just after //build/ 2011 last year. What do you think?
This sessions was absolutely awesome.
One of the best sessions I attended.
I, too, would like to have the source. This was easly one of the best sessions I attended.
@KarlZ: You can unit test asynchronous code in VS2012 with MSTest or xUnit by declaring your unit tests as "async Task" instead of "void".
Excellent session. Great explanation of concepts. The async lambda blew me away, learned something new.
Great session! I will be using this stuff (async, await) in my code.
Why don't you guys simply add a runtime scheduler that implements green threads, so that all code can be completely linear without using any await() functions? I know it's evolution and everything, but it seems to me that C# with latest Async is going directly towards supporting actor model like in Erlang. It would be awesome to program C# with actors, without seeing anything from the sceduling.
Just hire me, I'll show you how to do it
demo source code available?
Great session on async/await, definitely filled some gaps I had with it.
This session is must for a .NET developer.
Any one got the Source Code for this talk?
Why does it took 10+ years to get to this? Everything he talks about was known a long time ago. That's why interrupts and later DMA were introduced in computer hardware - to be able to do something else while some slow i/o operations happens. To bad it took so long to get that old idea into C#. And they are presenting it like something new... lol.
Just adding one word - multithreading...
Remove this comment
Remove this thread
close