subprojects/parseq/src/main/java/com/linkedin/parseq/Tasks.java
@Deprecated
  public static <T> Task<T> timeoutWithError(final long time, final TimeUnit unit, final Task<T> task) {
    return task.withTimeout(time, unit);
  }
@Deprecated
  public static <T> Task<T> timeoutWithError(final long time, final TimeUnit unit, final Task<T> task) {
    return task.withTimeout(time, unit);
  }
Creates a new task that wraps the given task. If the given task finishes
before the timeout occurs then this task takes on the value of the task.
If the task does not complete in the given time then this task will
have a TimeoutException. The wrapped task may be cancelled when a timeout
occurs.

@param time the time to wait before timing out
@param unit the units for the time
@param task the task to wrap
@param <T> the value type for the task
@return the new timeout task
@deprecated  As of 2.0.0, replaced by {@link Task#withTimeout(long, TimeUnit) Task.withTimeout}.
@see Task#withTimeout(long, TimeUnit) Task.withTimeout