mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
去除无限重试方法
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user