Showing results for async - .NET Blog

Oct 3, 2011
Post comments count0
Post likes count0

New articles on async/await in MSDN Magazine

Stephen Toub - MSFT
Stephen Toub - MSFT

The October 2011 issue of MSDN Magazine is now available online.  In it, you can find three articles about the new async/await features of C# and Visual Basic.  While the articles can stand alone, they were written with each other in mind in order to provide a 1-2-3 on-ramp into the world of asynchronous programming with these new languag...

.NET Parallel Programming
Oct 2, 2011
Post comments count0
Post likes count0

Keeping Async Methods Alive

Stephen Toub - MSFT
Stephen Toub - MSFT

Consider a type that will print out a message when it’s finalized, and that has a Dispose method which will suppress finalization: class DisplayOnFinalize : IDisposable {     public void Dispose() { GC.SuppressFinalize(this); }     ~DisplayOnFinalize() { Console.WriteLine(“Finalized”); } } Now conside...

.NET Parallel Programming
Oct 2, 2011
Post comments count3
Post likes count1

Don’t Forget To Complete Your Tasks

Stephen Toub - MSFT
Stephen Toub - MSFT

“Don’t forget to complete your tasks.”  That guidance may sound trivial and silly, but I recently saw it as a source of a bug in software written by some very smart folks, and thus thought this would be a good opportunity to remind folks of the imperative.Tasks represent a promise.  If you hand one out, someone else may&...

.NET Parallel Programming
Sep 28, 2011
Post comments count0
Post likes count3

Task Exception Handling in .NET 4.5

Stephen Toub - MSFT
Stephen Toub - MSFT

For the .NET Framework 4.5 Developer Preview, a lot of work has been done to improve the Task Parallel Library (TPL), in terms of functionality, in terms of performance, and in terms of integration with the rest of the .NET Framework.  With all of this work, we’ve strived for a very high compatibility bar, which means your applications t...

.NET Parallel Programming
Sep 27, 2011
Post comments count0
Post likes count0

Updated TPL Dataflow CTP

Stephen Toub - MSFT
Stephen Toub - MSFT

It’s been a few months since April when we last released a Community Technology Preview (CTP) of System.Threading.Tasks.Dataflow.dll, aka “TPL Dataflow”.  Today for your programming pleasure, we have another update.As mentioned in “What’s New for Parallelism in .NET 4.5”, System.Threading.Tasks.Dataflow.dll ...

.NET Parallel Programming
Sep 17, 2011
Post comments count0
Post likes count0

What’s New For Parallelism in .NET 4.5

Stephen Toub - MSFT
Stephen Toub - MSFT

.NET 4 and Visual Studio 2010 saw the introduction of a wide range of new support for parallelism: the Task Parallel Library (TPL), Parallel LINQ (PLINQ), new synchronization and coordination primitives and collections (e.g. ConcurrentDictionary), an improved ThreadPool for handling parallel workloads, new debugger windows, new concurrency visualiz...

.NET Parallel Programming
Jun 27, 2011
Post comments count0
Post likes count0

Using Tasks to implement the APM Pattern

Stephen Toub - MSFT
Stephen Toub - MSFT

Several times recently, folks have asked how to use tasks to implement the APM pattern, otherwise known as the Asynchronous Programming Model pattern, or the IAsyncResult pattern, or the Begin/End pattern.  While moving forward we encourage folks to use a Task-based pattern for exposing asynchronous operation, the APM pattern has been the prev...

.NET Parallel Programming
Apr 13, 2011
Post comments count0
Post likes count0

TPL Dataflow CTP Refresh

Stephen Toub - MSFT
Stephen Toub - MSFT

Today, we released a new CTP of TPL Dataflow, otherwise known as System.Threading.Tasks.Dataflow.dll.  You can download this as part of the Microsoft Visual Studio Async CTP, which will also install the new C#/Visual Basic support for writing asynchronous methods, or you can install the DLL itself through the installer available on the DevLabs...

.NET Parallel Programming
Jan 26, 2011
Post comments count0
Post likes count0

TPL Dataflow on TC Labs

Stephen Toub - MSFT
Stephen Toub - MSFT

After releasing a CTP of TPL Dataflow as part of the Async CTP, we had multiple requests for a standalone download for just the System.Threading.Tasks.Dataflow.dll.  Thanks to everyone who asked for this, and as of this morning, such an installer for an updated version of the preview is now available!  This is part of a special ...

.NET Parallel Programming
Jan 15, 2011
Post comments count5
Post likes count5

AsyncLazy

Stephen Toub - MSFT
Stephen Toub - MSFT

A question I’ve seen come up from time to time is “Why doesn’t Lazy<T> support asynchronous initialization?”  It’s a fair question.  After all, if you’re using Lazy<T> because you have an expensive resource you want to delay the creation of until it’s absolutely needed, it’s fair...

.NET Parallel Programming