public static function retryable(Connection $connection, \Closure $closure)
{
return self::retry($connection, $closure, 0);
}
/**
* @template TReturn of mixed
*
* @param \Closure(Connection): TReturn $closure The function to execute transactionally.
*
* @return TReturn
*/
private static function retry(Connection $connection, \Closure $closure, int $counter)
{