namespace InnovEnergy.Lib.Utils.Try; public partial class TrySync { public TrySync Retry(Int32 nTimes) { return Retry(nTimes); } public TrySync Retry(Int32 nTimes) where E:Exception { Boolean ShouldRetry(E _) => nTimes-- > 0; return Retry(ShouldRetry); } }