Async/Await
Lesson
1 / 4

What is async?

Async lets code wait without blocking. Perfect for I/O like network and file operations.

Program.cs
// Without async - blocks the thread
var data = DownloadData();

// With async - thread can do other work
var data = await DownloadDataAsync();

Wait without freezing