using System.Collections.Generic;
using System.Threading.Tasks;
public static async void Main()
TimeSpan retryDelay = TimeSpan.FromSeconds(5);
var random = new Random();
Console.WriteLine("Start "+i);
var ia = random.Next(0,2);
throw new Exception("hej");
Console.WriteLine("Problem z pobraniem paczki "+i+ " z "+total+" - próba "+currentRetry+" z "+retryCount+" : "+ex.Message);
if(currentRetry > retryCount)