using System.Threading.Tasks;
private const int _waitSeconds = 1;
private static int _execCount = 0;
public static async void Main()
var testRequest = TestAsync();
await Task.WhenAll(testRequest);
Console.WriteLine($"OPTIONAL: {testRequest.Result}");
await Task.WhenAll(testRequest);
Console.WriteLine($"REQUIRED: {testRequest.Result}");
private static async Task<int> TestAsync()
Thread.Sleep(_waitSeconds * 1000);