去除无限重试方法

This commit is contained in:
kongweiguang
2023-06-20 19:16:18 +08:00
parent c317ef1e08
commit e925b5ed74
2 changed files with 3 additions and 49 deletions

View File

@@ -72,20 +72,4 @@ public class RetryUtilTest {
Assertions.assertEquals("ok", result);
}
@Test
public void neverStop() {
//异步一直执行
RetryUtil.ofNeverStopAsync(() -> {
System.out.println("async -->");
}, Duration.ofSeconds(1), true);
System.out.println(" ================ ");
//同步一直执行
RetryUtil.ofNeverStop(() -> {
System.out.println(123);
}, Duration.ofSeconds(3), true);
}
}