using System;
using System.Threading.Tasks;
public class Program
{
public async void Main()
var attempts = 20;
var request = "JOPA!";
do
await SendAsync(()=>SendAndLog(request));
request = request + attempts;
attempts--;
}
while (attempts>=0);
private static async Task SendAsync(Func<Task> action)
await action();
private static async Task SendAndLog(string request)
Console.WriteLine(request);