code: public static final <T> AsyncResultImpl<T> create(Throwable t, Class<T> type) {
          return new AsyncResultImpl<>(t);
      }
docs: Convenience method for creating an async result.
  @param t the throwable
  @param type the type
  @return result of type T