摘要:
CompletableFuture介绍 CompletableFuture: CompletableFuture的核心静态方法: 代码使用示例: CompletableFuture 可以看到,异步任务结束后会才会调用whenComplete方法中的代码,即自动调用回调对象的回调方法/下一个方法 阅读全文
posted @ 2025-10-09 16:04
扛着音响去化缘
阅读(13)
评论(0)
推荐(0)
摘要:
CompletableFuture常用方法 ①获得结果和触发计算 获取结果 public T get() public T get(long timeout,TimeUnit unit) public T join() >和get一样的作用,只是不需要抛出异常 public T getNow(T v 阅读全文
posted @ 2025-10-09 16:03
扛着音响去化缘
阅读(17)
评论(0)
推荐(0)

浙公网安备 33010602011771号