await
Pause this method until the task finishes, without holding up the thread.
await suspends the enclosing async method until the awaited operation completes, returning control to the caller, then resumes with its result or rethrows its exception.
Loading interactive…
Examples
string text = await File.ReadAllTextAsync("notes.txt");pauses the method, not the thread, until the file has been read.
See also