Understanding the difference between the following async-await calls

Viewed 64

Would these calls behave similarly? As in would they behave the same way async-await runs - can or cannot run on the same original thread context? Or would the first one ensure that the execution happens in a different thread context?

First way -

Task task = SomeAsyncTask();
await task();

Second way -

await SomeAsyncTask();
2 Answers
Related