<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>New articles on async/await in MSDN Magazine</title><link>http://blogs.msdn.com/b/pfxteam/archive/2011/10/03/10219193.aspx</link><description>The October 2011 issue of MSDN Magazine is now available online.&amp;#160; In it, you can find three articles about the new async/await features of C# and Visual Basic.&amp;#160; While the articles can stand alone, they were written with each other in mind in</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: New articles on async/await in MSDN Magazine</title><link>http://blogs.msdn.com/b/pfxteam/archive/2011/10/03/10219193.aspx#10244485</link><pubDate>Tue, 06 Dec 2011 05:42:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10244485</guid><dc:creator>good news</dc:creator><description>&lt;p&gt;I want to continue to read it.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10244485" width="1" height="1"&gt;</description></item><item><title>re: New articles on async/await in MSDN Magazine</title><link>http://blogs.msdn.com/b/pfxteam/archive/2011/10/03/10219193.aspx#10242999</link><pubDate>Wed, 30 Nov 2011 18:31:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10242999</guid><dc:creator>Stephen Toub - MSFT</dc:creator><description>&lt;p&gt;Matt-&lt;/p&gt;
&lt;p&gt;I assume when you say &amp;quot;overhead&amp;quot; that you&amp;#39;re referring to conceptual overhead?&lt;/p&gt;
&lt;p&gt;We have that basic model in Task as well... the ContinueWith method takes a delegate which will be invoked when the operation completes. &amp;nbsp;The delegate is handed the completed task to process however you like, accessing its Result, its Exception, etc. &amp;nbsp;There are also more involved overloads that allow you to, for example, specify that the continuation should only run for certain completion states, e.g. only if the task faulted, or only if it ran to completion successfully, etc.&lt;/p&gt;
&lt;p&gt;But await goes beyond that. &amp;nbsp;It in effect layers on top of ContinueWith to enable you to use all of the control flow constructs in the language, allowing the compiler to do all of the heavy transformations rather than forcing you to do so. &amp;nbsp;For a single asynchronous operation, the simple model you describe is fine. &amp;nbsp;But as the code gets more involved (e.g. a loop around an asynchronous operation), the code you have to write with such a model gets voluminous and complex... that&amp;#39;s where await comes in.&lt;/p&gt;
&lt;p&gt;If you haven&amp;#39;t already, I&amp;#39;d suggest reading Eric&amp;#39;s article at &lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/magazine/hh456401.aspx"&gt;msdn.microsoft.com/.../hh456401.aspx&lt;/a&gt;, as well as exploring all of the informative material at &lt;a rel="nofollow" target="_new" href="http://msdn.com/async"&gt;http://msdn.com/async&lt;/a&gt;.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10242999" width="1" height="1"&gt;</description></item><item><title>re: New articles on async/await in MSDN Magazine</title><link>http://blogs.msdn.com/b/pfxteam/archive/2011/10/03/10219193.aspx#10242821</link><pubDate>Wed, 30 Nov 2011 11:43:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10242821</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;I am wondering why there is so much overhead done with async programming. If you take a look at web programming (JavaScript) with jQuery and its AJAX calling mechanism, which is also asynchronous per definitionem, there are simply two delegate callback functions specified as parameters: one for successful execution, and one that is called if any error occurs.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s a fairly simple concept, easy to understand and easy to use. Why not implement a similar concept in C#? Then you don&amp;#39;t need await since you have the 2 callback delegates instead.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10242821" width="1" height="1"&gt;</description></item><item><title>re: New articles on async/await in MSDN Magazine</title><link>http://blogs.msdn.com/b/pfxteam/archive/2011/10/03/10219193.aspx#10236872</link><pubDate>Mon, 14 Nov 2011 17:25:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10236872</guid><dc:creator>Stephen Toub - MSFT</dc:creator><description>&lt;p&gt;ms khan, you&amp;#39;re asking how to learn to program? &amp;nbsp;Do you have a sense for what kind of apps you want to build? &amp;nbsp;You might start at msdn.com, following through to whichever platforms you want to target, and reading through the various tutorials available there, watching videos, etc.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10236872" width="1" height="1"&gt;</description></item><item><title>re: New articles on async/await in MSDN Magazine</title><link>http://blogs.msdn.com/b/pfxteam/archive/2011/10/03/10219193.aspx#10236580</link><pubDate>Sun, 13 Nov 2011 14:44:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10236580</guid><dc:creator>ms khan</dc:creator><description>&lt;p&gt;hi stephen&lt;/p&gt;
&lt;p&gt;this is the first time &amp;nbsp;i m leaving comment, API&amp;#39;s are better or namespaces and classes are better. and how can i be a programmer, as i &amp;nbsp;am in another job. and have no degree in programming but some touch with VC and VC#. how can i be productive? &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10236580" width="1" height="1"&gt;</description></item><item><title>re: New articles on async/await in MSDN Magazine</title><link>http://blogs.msdn.com/b/pfxteam/archive/2011/10/03/10219193.aspx#10222444</link><pubDate>Sun, 09 Oct 2011 10:50:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10222444</guid><dc:creator>Javed</dc:creator><description>&lt;p&gt;Hi Stephen,&lt;/p&gt;
&lt;p&gt;how r u?&lt;/p&gt;
&lt;p&gt;its really amazing technology..but as its not open source people are not aware of its power..&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10222444" width="1" height="1"&gt;</description></item><item><title>re: New articles on async/await in MSDN Magazine</title><link>http://blogs.msdn.com/b/pfxteam/archive/2011/10/03/10219193.aspx#10222110</link><pubDate>Sat, 08 Oct 2011 08:16:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10222110</guid><dc:creator>jpaulino</dc:creator><description>&lt;p&gt;I don&amp;#39;t understand why none of those articles and none of the parallel programming blog posts have Visual Basic code. :(&lt;/p&gt;
&lt;p&gt;I know that we can use it also in VB and I don&amp;#39;t have problems reading C#, but I would love to see Visual Basic examples in it.&lt;/p&gt;
&lt;p&gt;But nice articles on MSDN Magazine and really nice work from the pfxteam ;)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10222110" width="1" height="1"&gt;</description></item><item><title>re: New articles on async/await in MSDN Magazine</title><link>http://blogs.msdn.com/b/pfxteam/archive/2011/10/03/10219193.aspx#10221165</link><pubDate>Thu, 06 Oct 2011 15:37:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10221165</guid><dc:creator>Stephen Toub - MSFT</dc:creator><description>&lt;p&gt;Hi Rohit-&lt;/p&gt;
&lt;p&gt;Thanks for the feedback. &amp;nbsp;I&amp;#39;m not currently working on a book, but it&amp;#39;s nice to know there&amp;#39;s interest. &amp;nbsp;At the very least, we&amp;#39;ll continue to blog actively.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10221165" width="1" height="1"&gt;</description></item><item><title>re: New articles on async/await in MSDN Magazine</title><link>http://blogs.msdn.com/b/pfxteam/archive/2011/10/03/10219193.aspx#10221128</link><pubDate>Thu, 06 Oct 2011 13:30:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10221128</guid><dc:creator>Rohit Sharma</dc:creator><description>&lt;p&gt;Hi Stephen,&lt;/p&gt;
&lt;p&gt;Wondering if you/the-team is coming up with a TPL black bible book anytime soon covering 4.5 enhancements? I&amp;#39;d love to read a book written by you especially.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Rohit&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.rohiton.net"&gt;http://www.rohiton.net&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10221128" width="1" height="1"&gt;</description></item><item><title>re: New articles on async/await in MSDN Magazine</title><link>http://blogs.msdn.com/b/pfxteam/archive/2011/10/03/10219193.aspx#10219400</link><pubDate>Mon, 03 Oct 2011 21:47:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10219400</guid><dc:creator>Stephen Toub - MSFT</dc:creator><description>&lt;p&gt;Thanks, Jesper. &amp;nbsp;The MSDN Magazine folks are now aware of the issue and are looking into it.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10219400" width="1" height="1"&gt;</description></item></channel></rss>