Future.get

Waits if necessary for the computation to complete, and then retrieves its result.

@return the computed result @throws CancellationException if the computation was cancelled @throws ExecutionException if the computation threw an exception @throws InterruptedException if the current thread was interrupted while waiting

  1. V get()
    interface Future(V)
    V
    get
    ()
  2. V get(Duration timeout)

Meta