C#/.NET Toolbox: Creating a "Safer" Task Dispose()(www.blackrabbitcoder.net)
submitted by
BlackRabbitCoder(661) 7 months, 19 days ago
So recently, I’ve been moving some older utility classes logic over to use the excellent .NET Task Parallel Library (TPL). This library contains, at it’s core, a class called Task which allows parallel programming without the need of working directly with threads.
During this process, I wrote a few extension methods I found to be useful in dealing with tasks in an easier manner, and thought I’d share them in a few posts. Today's will discuss an extension method to make disposing a task a little bit "safer".
|category: C#
|Views: 204
tags:
C# another
Everyones tags:
Your Tags: