摘要:
allOf:等待所有任务完成 anyOf:只要有一个任务完成 public class CompletableFutureDemo05 { private static ThreadPoolExecutor executor=new ThreadPoolExecutor(5, 50, 10, Tim 阅读全文
posted @ 2022-06-08 09:08
花心大萝卜li
阅读(147)
评论(0)
推荐(0)
摘要:
runAfterEither:不能获取完成的线程的返回结果,自身也没有返回结果 * acceptEither:可以获取线程的返回结果,自身没有返回结果 * applyToEither:既可以获取线程的返回结果,自身也有返回结果 public class CompletableFutureDemo04 阅读全文
posted @ 2022-06-08 08:54
花心大萝卜li
阅读(195)
评论(0)
推荐(0)

浙公网安备 33010602011771号