TFuture.waitGet

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

If the operation has already completed, the result is immediately returned.

The result of this method is »alias this«'d to the interface, so that TFuture can be used as a drop-in replacement for a simple value in synchronous code.

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

Meta