Method ExecuteWithRetryAsync(IRedbContext, Func<Task>, int, int, CancellationToken)
Retries operation on a deadlock unless context is in a transaction when it
starts: then the transaction belongs to the caller, and the deadlock leaves at once.
public static Task ExecuteWithRetryAsync(IRedbContext context, Func<Task> operation, int maxRetries = 3, int baseDelayMs = 50, CancellationToken cancellationToken = default)