@Deprecated
  public AsyncInvocation<V> await(final long timeout, final TimeUnit unit)
      throws InterruptedException, TimeoutException {
    long millis = unit.toMillis(timeout);
    join(millis);
    timeoutIfAlive(millis);
    checkException();
    return this;
  }
Waits if necessary for at most the given time for the computation to complete.

@param timeout the maximum time to wait
@param unit the time unit of the timeout argument

@return this {@code AsyncInvocation}

@throws AssertionError wrapping any {@code Exception} thrown by this {@code AsyncInvocation}.

@throws CancellationException if the computation was cancelled

@throws InterruptedException if the current thread is interrupted.

@throws TimeoutException if the wait timed out

@deprecated Please use {@link #await()} which uses {@link GeodeAwaitility#getTimeout()}.
geode-dunit/src/main/java/org/apache/geode/test/dunit/AsyncInvocation.java