Documentation
C# 8.0
// if CallServiceAsync returns Task (void) var task = Task.Run(() => CallServiceAsync(url, action)); task.Wait();
Documentation - What's new
Youtube - Quick demo by Mads Torgersen
What's new in C# 8.0
Building C# 8.0
See the Official documentation and this .NET Blog article (August 6, 2019).
See this .NET Blog article (May 14, 2019).