groovy def executeWithRetry(Closure closure, int maxAttempts) { int attempt = 1 while (attempt <= maxAttempts) { try { closure.call() } catch (Exception e) { } attempt++ } }


上一篇:
下一篇:
切换中文