Trying to understanding the difference between the TPL & async
/await
when it comes to thread creation.
I believe the TPL (Task
async / await basically simplifies the ContinueWith
methods ( Continuations in Continuation Passing Style )
It does not introduce concurrency - you still have to do that yourself ( or use the Async version of a framework method. )
So, the C# 5 version would be:
await Task.Run( () => DoSomeAsyncWork() );
DoSomeWorkAfter();