using System;
using System.Threading;
using System.Threading.Tasks;
namespace SpotifyAPI.Web.Http
{
///
/// The Retry Handler will be directly called after the response is retrived and before errors and body are processed.
///
public interface IRetryHandler
{
delegate Task RetryFunc(IRequest request, CancellationToken cancel = default);
Task HandleRetry(IRequest request, IResponse response, RetryFunc retry, CancellationToken cancel = default);
}
}