TASK:generate 取消generate

This commit is contained in:
2024-01-24 16:57:53 +08:00
parent 1d2cb17d54
commit 65bed9dada
2 changed files with 15 additions and 11 deletions

View File

@@ -46,6 +46,7 @@ public class AsyncCallerUtil {
log.info("===============持续等待===============");
}, 10, 10, TimeUnit.SECONDS);
log.info("阻塞等待结果...");
// 阻塞,等待结果
List<String> result = generateResult.get();
// 取消定时任务