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