I'm looking at the last example from page http://msdn.microsoft.com/en-us/library/dd997415(v=vs.110).aspx
var task1 = Task.Factory
.StartNew(() => {...})
.ContinueWith((t) => {...})
The idea of example that task is placed to thread pool and some post-process handler registered for just created task. But this code looks dangerous even with respect to .Net atomicity of operations.
Instead I'd propose:
var task1 = new Task(()=>{...})
task1.ContinueWith((t) => {...})
task1.Start();
So my doubt about first form that exists a chance of task accomplishment before it is assigned with post-process handler. Please provide some feedback and explanation if I'm wrong.