Table of Contents

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

action Func<Task>

The action to execute.

cancellationToken CancellationToken

Cancellation token.

Returns

Task

A task representing the operation.