Sign in
MSDN Blogs
Microsoft Blog Images
More ...
Browse by Tags
MSDN Blogs
>
.NET Parallel Programming
>
All Tags
>
async
Server & Tools Blogs
>
Developer Tools Blogs
>
Parallel Programming with .NET
Executive Bloggers
S. Somasegar
Brian Harry
Scott Guthrie
Jason Zander
Visual Studio
Visual Studio
Blend
LightSwitch
Line of Business Apps by Beth Massi
Setup & Install by Heath Stewart
Application Lifecycle Management
Visual Studio ALM
Team Foundation Service
Languages
Visual Basic
Visual C#
Visual C++
Visual F#
JavaScript
.NET Framework
.NET Framework
.NET Parallel Programming
ADO.NET (Managed Providers, DataSet & EF)
ASP.NET by Scott Hanselman
Base Class Library (BCL)
Silverlight
WCF Data Services
Workflow
Platform Development
Internet Explorer
Apps for Office and SharePoint 2013
SharePoint
Office
Web
Windows 8
Windows Store
Windows Azure
Windows Phone
Parallel Programming with .NET
All about Async/Await, System.Threading.Tasks, System.Collections.Concurrent, System.Linq, and more…
Subscribe
Comments
Home
Menu
Atom
Translate this page
Powered by
Microsoft® Translator
Recent Posts
.NET memory allocation profiling and Tasks
Posted
1 month ago
by
Stephen Toub - MSFT
7
Comments
Tasks, Monads, and LINQ
Posted
1 month ago
by
Stephen Toub - MSFT
9
Comments
"Invoke the method with await"... ugh!
Posted
2 months ago
by
Stephen Toub - MSFT
3
Comments
MVP Summit presentation on async
Posted
3 months ago
by
Stephen Toub - MSFT
5
Comments
Live Now on Developer Tools Blogs
Tags
.NET 4
.NET 4.5
Article Summary
Cancellation
Code Samples
Coordination Data Structures
Dataflow
Debugging
Message Passing
MSDN
Parallel Extensions
ParallelExtensionsExtras
Parallelism Blockers
PLINQ
Release
Silverlight
Talks
Task Parallel Library
ThreadPool
Tools
Related resources
Visual Studio Developer Center
Visual Studio Product Website
Archives
Archives
April 2013
(2)
March 2013
(1)
February 2013
(1)
January 2013
(2)
December 2012
(1)
November 2012
(1)
October 2012
(1)
September 2012
(2)
August 2012
(3)
June 2012
(2)
May 2012
(3)
April 2012
(6)
March 2012
(8)
February 2012
(14)
January 2012
(5)
December 2011
(3)
November 2011
(8)
October 2011
(5)
September 2011
(6)
June 2011
(3)
May 2011
(3)
April 2011
(2)
February 2011
(1)
January 2011
(6)
November 2010
(2)
October 2010
(5)
August 2010
(2)
July 2010
(3)
June 2010
(7)
May 2010
(6)
April 2010
(23)
March 2010
(3)
February 2010
(10)
January 2010
(6)
December 2009
(3)
November 2009
(12)
October 2009
(10)
September 2009
(1)
August 2009
(3)
July 2009
(6)
June 2009
(11)
May 2009
(13)
April 2009
(4)
March 2009
(2)
February 2009
(4)
January 2009
(1)
December 2008
(1)
November 2008
(3)
October 2008
(6)
September 2008
(1)
August 2008
(5)
July 2008
(2)
June 2008
(15)
May 2008
(4)
April 2008
(1)
March 2008
(6)
February 2008
(6)
January 2008
(4)
December 2007
(10)
November 2007
(6)
More
▼
Less
▲
Tagged Content List
Blog Post:
Tasks, Monads, and LINQ
Stephen Toub - MSFT
A few years back, Wes Dyer wrote a great post on monads , and more recently, Eric Lippert wrote a terrific blog series exploring monads and C# . In that series, Eric alluded to Task<TResult> several times, so I thought I’d share a few related thoughts on Task<TResult> and the async/await...
on
3 Apr 2013
Blog Post:
"Invoke the method with await"... ugh!
Stephen Toub - MSFT
I can be a bit sensitive when it comes to language and how concepts are conveyed. I think it’s important to be accurate, even if not precise, when describing what something is or how to use it, as otherwise the folks to whom you’re communicating can easily form the wrong mental model for...
on
13 Mar 2013
Blog Post:
MVP Summit presentation on async
Stephen Toub - MSFT
Lucian Wischik and I presented an "async clinic" at the MVP Summit in Bellevue this week. The async/await keywords in C# and Visual Basic drastically simplify asynchronous programming, but that of course doesn't mean that using them is without any gotchas: the goal of the discussion was to highlight...
on
20 Feb 2013
Blog Post:
Psychic Debugging of Async Methods
Stephen Toub - MSFT
These days it’s not uncommon for me to receive an email or read a forum post from someone concerned about a problem they’re experiencing with an async method they’ve written, and they’re seeking help debugging the issue. Sometimes plenty of information about the bug is conveyed, but other times...
on
28 Jan 2013
Blog Post:
Cooperatively pausing async methods
Stephen Toub - MSFT
Recently I was writing an app that processed a bunch of files asynchronously. As with the Windows copy file dialog, I wanted to be able to provide the user with a button that would pause the processing operation. To achieve that, I implemented a simple mechanism that would allow me to pass a “pause...
on
13 Jan 2013
Blog Post:
How do I cancel non-cancelable async operations?
Stephen Toub - MSFT
This is a question I hear relatively frequently: “I have an async operation that’s not cancelable. How do I cancel it?” The construction of the question often makes me chuckle, but I understand and appreciate what’s really being asked. The developer typically isn’t asking how to cancel the...
on
5 Oct 2012
Blog Post:
Forking in async methods
Stephen Toub - MSFT
Given that .NET 4.5 has only recently been released in its final form, it’s not surprising that many folks are still very new to the async/await keywords and have misconceptions about what they are and what they do (I’ve tried to clarify some of these in this Async/Await FAQ ). One of the more...
on
11 Sep 2012
Blog Post:
TPL Dataflow NuGet Package for .NET 4.5
Stephen Toub - MSFT
As just announced on the Base Class Libraries (BCL) team blog, the RTM release of TPL Dataflow is now available . Enjoy :)
on
21 Aug 2012
Blog Post:
Implementing Then with Await
Stephen Toub - MSFT
In a post a while ago, I talked about sequential composition of asynchronous operations . Now that we have the async/await keywords in C# and Visual Basic, such composition is trivial, and async/await are indeed the recommended way to achieve such composition with these languages. However, in that...
on
15 Aug 2012
Blog Post:
Processing tasks as they complete
Stephen Toub - MSFT
Recently I’ve had several folks ask me about how to process the results of tasks as those tasks complete. A developer will have multiple tasks representing asynchronous operations they’ve initiated, and they want to process the results of these tasks, e.g. List<Task<T>> tasks = …; foreach...
on
2 Aug 2012
Blog Post:
ExecutionContext vs SynchronizationContext
Stephen Toub - MSFT
I’ve been asked a few times recently various questions about ExecutionContext and SynchronizationContext, for example what the differences are between them, what it means to “flow” them, and how they relate to the new async/await keywords in C# and Visual Basic. I thought I’d try to tackle some...
on
15 Jun 2012
Blog Post:
Using async/await in WinRT async operations
Stephen Toub - MSFT
Several weeks ago, I wrote a post for the Windows 8 app developer blog that was all about using await and AsTask to consume WinRT async operations . I've now published a follow-up post that's all about exposing .NET tasks as WinRT async operation . In a sense, you can think about the first post as showing...
on
14 Jun 2012
Blog Post:
Performance consideration for Async/Await and MarshalByRefObject
Stephen Toub - MSFT
In the previous " What's New for Parallelism in Visual Studio 2012 RC " blog post, I mentioned briefly that for the .NET 4.5 Release Candidate, StreamReader.ReadLineAsync experienced a significant performance improvement over Beta. There's an intriguing story behind that, one I thought I'd share here...
on
31 May 2012
Blog Post:
Async Targeting Pack for Visual Studio 11 now available for .NET 4 and Silverlight 5
Stephen Toub - MSFT
We’re happy to announce that you can now download an Async Targeting Pack for Visual Studio 11 that lets you target .NET 4 and Silverlight 5. The included DLLs address the previously discussed issue of the Visual Studio 11 Beta compilers being incompatible with the AsyncCtpLibrary* DLLs from the...
on
26 Apr 2012
Blog Post:
Using await with WinRT async operations
Stephen Toub - MSFT
Over on the Windows 8 app developer blog, I've written a blog post about using await with WinRT . I hope you enjoy it!
on
24 Apr 2012
Blog Post:
Should I expose synchronous wrappers for asynchronous methods?
Stephen Toub - MSFT
In a previous post Should I expose asynchronous wrappers for synchronous methods? , I discussed “async over sync,” the notion of using synchronous functionality asynchronously and the benefits that doing so may or may not yield. The other direction of “sync over async” is also interesting to explore...
on
13 Apr 2012
Blog Post:
Async/Await FAQ
Stephen Toub - MSFT
From time to time, I receive questions from developers which highlight either a need for more information about the new “async” and “await” keywords in C# and Visual Basic. I’ve been cataloguing these questions, and I thought I’d take this opportunity to share my answers...
on
12 Apr 2012
Blog Post:
Are deadlocks still possible with await?
Stephen Toub - MSFT
Developers familiar with parallel programming are also familiar with a wide range of potential problems that can occur when practicing the art. One of the most well-known issues is “deadlock,” where two or more operations are waiting on each other to complete in a manner such that none of them...
on
12 Apr 2012
Blog Post:
Overriding Stream Asynchrony
Stephen Toub - MSFT
In .NET 4.5 Beta, the Stream class provides multiple virtual methods related to reading and writing: Read, BeginRead / EndRead, ReadAsync Write, BeginWrite / EndWrite, WriteAsync Flush, FlushAsync CopyToAsync As a developer deriving from Stream, it’s helpful to understand what the base implementations...
on
6 Apr 2012
Blog Post:
Should I expose asynchronous wrappers for synchronous methods?
Stephen Toub - MSFT
Lately I’ve received several questions along the lines of the following, which I typically summarize as “async over sync”: In my library, I have a method “public T Foo();”. I’m considering exposing an asynchronous method that would simply wrap the synchronous one, e.g. “public Task<T> FooAsync...
on
24 Mar 2012
Blog Post:
Are you using TPL Dataflow? We’d love to know!
Stephen Toub - MSFT
Are you using the new System.Threading.Tasks.Dataflow.dll library, either from its CTP s or from the .NET 4.5 Developer Preview or Beta? We'd love to hear about it, and if you have time, what your experiences have been (good or bad). What kind of solution are you building, and how are you...
on
6 Mar 2012
Blog Post:
Implementing a simple ForEachAsync, part 2
Stephen Toub - MSFT
After my previous post , I received several emails and comments from folks asking why I chose to implement ForEachAsync the way I did. My goal with that post wasn’t to prescribe a particular approach to iteration, but rather to answer a question I’d received… obviously, however, I didn’t provide...
on
5 Mar 2012
Blog Post:
Implementing a simple ForEachAsync
Stephen Toub - MSFT
Jon Skeet recently asked me how I might go about implementing the following “asynchronous ForEach” behavior: For each element in an enumerable, run a function that returns a Task<TResult> to represent the completion of processing that element. All of these functions may run asynchronously concurrently...
on
4 Mar 2012
Blog Post:
"The Zen of Async" at the MVP Summit 2012
Stephen Toub - MSFT
Thanks to everyone who attended my "The Zen of Async" presentation on Thursday at the MVP Summit. As I've had several requests, here are the slides and code for the talk.
on
3 Mar 2012
Blog Post:
What’s New for Parallelism in .NET 4.5 Beta
Stephen Toub - MSFT
At //BUILD/ in September, we blogged about the wealth of new support available for parallelism in the .NET Framework 4.5 Developer Preview . Since then, we’ve been hard at work on the .NET 4.5 Beta. With the beta just released , here are a few interesting and related things that are new or have...
on
29 Feb 2012
Page 1 of 3 (59 items)
1
2
3