CompletableFuture.join

Returns the result value when complete, or throws an (unchecked) exception if completed exceptionally. To better conform with the use of common functional forms, if a computation involved in the completion of this CompletableFuture threw an exception, this method throws an (unchecked) {@link CompletionException} with the underlying exception as its cause.

@return the result value @throws CancellationException if the computation was cancelled @throws CompletionException if this future completed exceptionally or a completion computation threw an exception

  1. void join()
  2. T join()
    class CompletableFuture(T)
    static if(!(is(T == void)))
    T
    join
    ()

Meta