// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Threading.Tasks;
using McMaster.Extensions.CommandLineUtils;
namespace TriageBuildFailures
{
internal static class RetryHelpers
{
///
/// Constrain the exponential back-off to this many minutes.
///
private const int MaxRetryMinutes = 15;
private static int TotalRetriesUsed;
public static int GetTotalRetriesUsed()
{
return TotalRetriesUsed;
}
public static async Task RetryAsync(Func action, IReporter reporter)
{
await RetryAsync