TaskExtensions
provides one method OrderByCompletion
which orders a sequence of Tasks by when they complete. The approach taken by AsyncEx is a combination of Jon Skeet's approach and Stephen Toub's approach.
TaskExtensions
in the Nito.AsyncEx.Synchronous
namespace provides a handful of extension methods that enable synchronous blocking of a Task
without wrapping its exception in an AggregateException
, or without observing the Task
exception at all. These are advanced methods that should probably not be used, since you run the risk of a deadlock.