Given something like this:
.ContinueWith((_, o) => this.Foo(), null, TaskContinuationOptions.OnlyOnRanToCompletion)
.ContinueWith((_, o) => this.Bar(), null, TaskContinuationOptions.OnlyOnFaulted)
.ContinueWith((_, o) => this.AnythingElse(), null, TaskContinuationOptions.?
Is there any way to construct a continuation that will execute AnythingElse
when the other continuations have not executed?
I want to catch all other possible terminations, but only if one of the first two continuations above have not executed already.