Asynchronous Programming in .NET 4.5 (async and await)

preview_player
Показать описание
This video is a recorded version of a webcast I recently finished. It will dig into the latest features for asynchronous programming in .NET and examine some of the newest features of C# 5.0. This includes studying async methods which are part of C# 5.0 and build on the PFx Task library. We will also briefly look at the PFx Task libraries to gain the necessary background for working with the new language features. Note that Visual Basic 11 will also have these identical features so in essence we'll be covering VB 11 as well.

Download the demo code for the async part here:

Рекомендации по теме
Комментарии
Автор

Wow! This is the best "tutorial" about asynchronous programming I ever saw! Finally I understood what asynchronous tasks are and differences with parallel approach. Keep doing this kind of great work! Congratulations! Favorited.

LucasBatistussi
Автор

VB programmer here. I just switched from .net 4.0 to 4.5 and wanted to learn about async and await. I found your video exceptional. You really have a knack for teaching!

Euquila
Автор

So old but still gold. Thanks for super easy understanding in that topic with going into detail. It really helped me understanding all of it :)

MattRothtauscher
Автор

Best explanation I've ever found. We admire your work, dedication and competence.

AlanDias
Автор

Just halfway through your video Michael and have to express my gratitude. You've explained this subject much clearer than so many other instructors whose I've tried to follow; especially even those on some huge, well-funded, training sites. Thank you, particularly, for explaining the little bit about Tasks in the beginning - so many tutorials either seem too dated; keen on teaching C# 3.5 Thread-based programming patterns, or jump straight to async and await.

magnusdeus
Автор

I was having big problems finding a way to fix a bug in my logic. I had a
while(true)
{
   // stuff
}  
and other code that had to be executed at the same time. 
This video with the async await Task.Delay(time), made my day!!!
Thank very very much! 

Feanrz
Автор

I went to your website. What a great resource for us developers. Thanks!

WoundedEgo
Автор

Holy, that's what I call in-depth! I have been using the Thread and ThreadPool classes for a long time now and never really got around looking into that topic more thoroughly, but this has enlightended me so much! Everything is explained to the extent I need to update my applications using the await and async keywords and the Task-class, and get rid of the Thread and ThreadPool classes. Although I will profile the overhead Task has over ThreadPool, just for paranoia reasons. ;)
Gonna share this.

danielschmid
Автор

Wow, Great tutorial!! I finally understand how to use async & await. Thanks for the clear explanation.

OtRatsaphong
Автор

Makes things crystal clear! Thanks Michael.

pratapkv
Автор

Great video. I went through lot of material/other videos. But couldnt exactly understand how async await works. Thanks a lot for clearing the confusions around async & await.

pavansonty
Автор

Great video. Really helpful. The Surface vs. iPad search was classic.

dland
Автор

Excellent video; thanks for sharing. You have a real gift for teaching.

cvaldivia
Автор

First of all thank you for this information...2nd to sum it all up its like having your software invading multiple cpu's :) with 'continue with' you literally keep feeding the invasion and re-supply with instructions...this is awesome thanks again! i come from multi threading in java...this is very powerful stuff

UBOATss
Автор

Hi,

Good question. You could use Parallel.ForEach but it would not have exactly the same effect.

Using the await keyword on what is ultimately means we are just waiting on IO Completion ports. You'll see that the system doesn't actually create any more threads. ...

mikeckennedy
Автор

This was a really well done presentation. Thank you for sharing.

michor
Автор

It's just Amazing. Very easy to understood what I have to study it!.
Thanks you so much Michael. I love your video!! BEST C# Video ever!

nfskis
Автор

thanks Michael that was good introduction to the Asynchronous programming

yrajeshk
Автор

I agree. Best explanation on this topic. Thank you very much.

kirkbae
Автор

This was very informative and easy to understand. Thank you!

amaterasu