Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

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.

Read the full section →