Table of Contents

Interface IRetryHandler

Namespace
Phetch.Core
Assembly
Phetch.Core.dll

An interface to allow queries to be retried when they fail.

public interface IRetryHandler

Methods

ExecuteAsync<TResult>(Func<CancellationToken, Task<TResult>>, CancellationToken)

Invokes the provided query function and optionally handles errors.

Task<TResult> ExecuteAsync<TResult>(Func<CancellationToken, Task<TResult>> queryFn, CancellationToken ct)

Parameters

queryFn Func<CancellationToken, Task<TResult>>
ct CancellationToken

Returns

Task<TResult>

Type Parameters

TResult