CompletableFuture.get

Waits if necessary for this future to complete, and then returns its result.

@return the result value @throws CancellationException if this future was cancelled @throws ExecutionException if this future completed exceptionally @throws InterruptedException if the current thread was interrupted while waiting

  1. void get()
  2. void get(Duration timeout)
  3. T get()
    class CompletableFuture(T)
    static if(!(is(T == void)))
    T
    get
    ()
  4. T get(Duration timeout)

Meta