await
pauses the method until the operation completes. So the second await
would get executed after the first await
returns.
For more information, see my async
/ await
intro or the official FAQ.
More Related Contents:
- What is the purpose of “return await” in C#?
- Is it possible to await an event instead of another async method?
- Async/await vs BackgroundWorker
- Awaiting multiple Tasks with different results
- What’s the difference between Task.Start/Wait and Async/Await?
- Using ‘async’ in a console application in C# [duplicate]
- Do you have to put Task.Run in a method to make it async?
- Awaiting Asynchronous function inside FormClosing Event
- awaitable Task based queue
- Await operator can only be used within an Async method [duplicate]
- Is async HttpClient from .Net 4.5 a bad choice for intensive load applications?
- How to ‘await’ raising an EventHandler event
- Task.Yield – real usages?
- HttpClient.GetAsync with network credentials
- What’s the difference between InvokeAsync and BeginInvoke for WPF Dispatcher
- Using async / await with DataReader ? ( without middle buffers!)
- Entity Framework async operation takes ten times as long to complete
- Regarding usage of Task.Start() , Task.Run() and Task.Factory.StartNew()
- Task sequencing and re-entracy
- Calling async methods from a WCF service
- Serialization of Entity Framework objects with One to Many Relationship
- Async threadsafe Get from MemoryCache
- Entity Framework Queryable async
- multiple awaits vs Task.WaitAll – equivalent?
- Use Task.Run() in synchronous method to avoid deadlock waiting on async method?
- Thread parameters being changed
- Can’t await async extension method
- Await vs Task.Result in an Async Method [duplicate]
- Async and Await with For Loop [duplicate]
- Run async method 8 times in parallel