Share via


RetryMechanismBase Class

Base class for retry mechanisms.

Constructor

RetryMechanismBase()

Methods

execute_with_retry

Executes the given action with retry logic.

execute_with_retry

Executes the given action with retry logic.

abstract async execute_with_retry(action: Callable[[], Awaitable[T]]) -> Awaitable[T]

Parameters

Name Description
action
Required
<xref:Callable>[[],<xref: Awaitable>[<xref:T>]]

The action to retry on exception.

Returns

Type Description
Awaitable[<xref:T>]

An awaitable that will return the result of the action.