You might use CompletableFuture.allOf to obtain a single completable future you can block on to wait only as long as needed for all of them to complete or ...
確定! 回上一頁