How to transform task.Wait(CancellationToken) to an await statement?
14:56 02 Sep 2014

So, task.Wait() can be transformed to await task. The semantics are different, of course, but this is roughly how I would go about transforming a blocking code with Waits to an asynchronous code with awaits.

My question is how to transform task.Wait(CancellationToken) to the respective await statement?

c# .net task-parallel-library async-await