# AsyncExecutorWithRetries

Package: [Microsoft.Orleans.Core](/orleans/docs/api/csharp/microsoft.orleans.core/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Core) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Async/AsyncExecutorWithRetries.cs#L14)

```csharp
public static class AsyncExecutorWithRetries
```

This class is a convenient utility class to execute a certain asynchronous function with retries, allowing to specify custom retry filters and policies.

## Methods

- [ExecuteWithRetries(Func&lt;int, Task&gt;, int, Func&lt;Exception, int, bool&gt;, TimeSpan, IBackoffProvider)](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.internal.asyncexecutorwithretries/methods/executewithretries-system-func-int-system-threading-tasks-task-int-system-func-s-f16ad60e/)
- [ExecuteWithRetries(Func&lt;int, Task&lt;T&gt;&gt;, int, Func&lt;Exception, int, bool&gt;, TimeSpan, IBackoffProvider, CancellationToken)](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.internal.asyncexecutorwithretries/methods/executewithretries-1-system-func-int-system-threading-tasks-task-t-int-system-fu-ec2eb6c3/)
- [ExecuteWithRetries(Func&lt;int, Task&lt;T&gt;&gt;, int, int, Func&lt;T, int, bool&gt;, Func&lt;Exception, int, bool&gt;, TimeSpan, IBackoffProvider, IBackoffProvider, CancellationToken)](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.internal.asyncexecutorwithretries/methods/executewithretries-1-system-func-int-system-threading-tasks-task-t-int-int-syste-47060420/)

## Fields

- [INFINITE_RETRIES](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.internal.asyncexecutorwithretries/fields/infinite-retries-7e14b279/)
