修改:timer api

This commit is contained in:
lxy
2021-01-12 17:29:22 +08:00
parent 687dd924c2
commit d49bc65538
2 changed files with 11 additions and 21 deletions

View File

@@ -37,8 +37,8 @@ public class AppTest {
})
);*/
consumer.timerSingle("a", "*/10 * * * * *", () -> {
System.out.println(Utility.now() + "timer a 执行了");
consumer.timer("a", () -> {
System.out.println(Utility.now() + " timer a 执行了");
});