Showing results for New Feature? - .NET Parallel Programming

Nov 4, 2010
0
0

New Feature? :: Delayed cancellation

Danny Shih
Danny Shih

 We’re interested in adding support for scheduling cancellation.  For example: // Create a token source that will Cancel() after a delay var cts = new CancellationTokenSource(TimeSpan.FromMilliseconds(100));// And/or schedule a Cancel() call cts.CancelAfter(TimeSpan.FromMilliseconds(100));We’ve heard from many folks that ...

Parallel Extensions.NET 4Cancellation
Oct 21, 2010
0
0

New Feature? :: ThreadLocal.Values

Danny Shih
Danny Shih

We’ve been considering adding a Values property to System.Threading.ThreadLocal<T>.  Values would return a collection of all current values from all threads (e.g. what you’d get if you evaluated Value from each thread).  This would allow for easy aggregations, and in fact in our Parallel Extensions Extras we have a ...

Parallel ExtensionsTask Parallel LibraryCoordination Data Structures
Oct 7, 2010
0
0

Creating pre-completed Tasks

Danny Shih
Danny Shih

 We’ve been considering adding support for creating completed Tasks from an existing result.  Here’s a prototypical example of where this could be valuable. void Task<float> ComputeAsync(...) {     if (!resultIsCached)     {         return Task<...

Task Parallel Library.NET 4Feedback Requested