Processing Sequences of Asynchronous Operations with Tasks

Of late, I’ve seen multiple folks asking about how to use tasks to asynchronously execute a sequence of operations.  For example, given three synchronous functions: public string DoA(string input); public string DoB(string aResult); public string DoC(string bResult); you could invoke these functions with code like: string aResult = DoA(input); string bResult = DoB(aResult); string cResult… Read more

New Feature? :: Delayed cancellation

  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 this is a desired feature and have found good uses for it ourselves.  Interestingly,… Read more