在一个方法中同时调用多个方法或者服务,并等待所有结果返回
package com.test.demo; import org.junit.Test; import java.util.concurrent.CompletableFuture; public class TestFuture { @Test public void testA(){ CompletableFuture<String> future3 = CompletableFuture.supplyAsync(() -> c())