Async/await: to sum it up

async methods are not executed asynchronously: see Async/await FAQ, Does using the “async” keyword on a method force all invocations of that method to be asynchronous?).

await task is not the same as task.Wait(): ibid, Is “await task;” the same thing as “task.Wait()”?.

ExecuteSynchronously() may not actually execute synchronously.

TaskScheduler.Current may be and frequently is different from TaskScheduler.FromCurrentSynchronizationContext().

The prosecution rests, your honor.

Posted in

Leave a Reply

Your email address will not be published. Required fields are marked *