public static <T> void completeFromCallable(CompletableFuture<T> future, Callable<T> operation) {
    try {
      future.complete(operation.call());
    } catch (Exception e) {
      future.completeExceptionally(e);
    }
  }
Fakes asynchronous execution by immediately executing the operation and completing the supplied future
either normally or exceptionally.
@param operation to executed
@param <T> type of the result
ambry-commons/src/main/java/com/github/ambry/commons/FutureUtils.java