TFuture.waitGet

Convenience shorthand for waiting until the result is available and then get()ing it.

If the operation completes in time, returns its result (resp. throws an exception for the failed/cancelled cases). If not, throws a TFutureException.

  1. ResultType waitGet()
  2. ResultType waitGet(Duration timeout)
    interface TFuture(ResultType)
    final
    ResultType
    waitGet
    (
    Duration timeout
    )

Meta