C# Async/Await/Tasks

1 min. read

C# - Async/Await/Tasks

Async Task MethodName()
{
Await Task.WehnAll()
}
Task.Delay(2000).GetAwaiter().GetResult()

Everything needs to become async, all the way to main
Task -> Becomes an object
References

C# Async/Await/Task Explained - Deep Dive