Showing results for async - .NET Blog

Sep 11, 2012
0
1

Forking in async methods

Stephen Toub - MSFT
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 common misconceptions is that a method...

.NET Parallel Programming
Aug 21, 2012
0
0

TPL Dataflow NuGet Package for .NET 4.5

Stephen Toub - MSFT
Stephen Toub - MSFT

As just announced on the Base Class Libraries (BCL) team blog, the RTM release of TPL Dataflow is now available.Enjoy :)

.NET Parallel Programming
Aug 15, 2012
0
0

Implementing Then with Await

Stephen Toub - MSFT
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 post I also described a few “Then” ...

.NET Parallel Programming
Aug 2, 2012
0
11

Processing tasks as they complete

Stephen Toub - MSFT
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(var t in tasks) { ...

.NET Parallel Programming
Jun 15, 2012
4
19

ExecutionContext vs SynchronizationContext

Stephen Toub - MSFT
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 of those questions here....

.NET Parallel Programming
Jun 14, 2012
0
0

Using async/await in WinRT async operations

Stephen Toub - MSFT
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 how to convert from WinRT as...

.NET Parallel Programming
Jun 6, 2012
3
3

Async in 4.5: Enabling Progress and Cancellation in Async APIs

Brandon Bray
Brandon Bray

The apps developers want to develop today are fast and fluid and the async features in .NET make this easier than ever. The world is also highly connected now which makes waiting for data a real concern for building great customer experiences. Alok Shriram from the .NET Base Class Library program management team continues his discussion on the asyn...

.NET
May 31, 2012
0
0

Performance consideration for Async/Await and MarshalByRefObject

Stephen Toub - MSFT
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.It has to do with some interesting inte...

.NET Parallel Programming
Apr 26, 2012
0
0

Async Targeting Pack for Visual Studio 11 now available for .NET 4 and Silverlight 5

Stephen Toub - MSFT
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 Async CTP; with this targeting pack, you ...

.NET Parallel Programming
Apr 24, 2012
0
0

Using await with WinRT async operations

Stephen Toub - MSFT
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!

.NET Parallel Programming