public static boolean completedWithFailure()

in src/main/java/com/twitter/nodes/utils/Futures.java [55:61]


  public static boolean completedWithFailure(Future<?> future) {
    try {
      return future.isDefined() && Await.result(future.liftToTry()).isThrow();
    } catch (Exception e) {
      return com.twitter.util.Throwables.unchecked(e);
    }
  }