JUC介绍--Future异步回调
异步回调–对比Ajax
runAsync 没有返回值的异步调用
正常执行测试:
public class FutureAsync {
public static void main(String[] args) throws ExecutionException, InterruptedException {
//没有返回值的异步调用 runAsync
CompletableFuture<Void> completableFuture = Comple
原创
2020-08-23 16:02:47 ·
251 阅读 ·
0 评论