class SafeFuture extends CompletableFuture<T> {

  public static <U> SafeFuture<U> completedFuture(U value) {
    SafeFuture<U> future = new SafeFuture<>();
    future.complete(value);
    return future;
  }

}