Interface IAsyncPolicy
- Namespace
- DotCompute.Backends.Metal.Utilities
- Assembly
- DotCompute.Backends.Metal.dll
Simple retry policy interface for Metal operations.
public interface IAsyncPolicy
Methods
ExecuteAsync(Func<Task>, CancellationToken)
Executes an action with retry logic.
Task ExecuteAsync(Func<Task> action, CancellationToken cancellationToken = default)
Parameters
actionFunc<Task>The action to execute.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task
A task representing the operation.