Fully @GenIgnore CompletionStage interop methods

Otherwise it breaks Rx generation and there's no real interest in these methods there.

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
This commit is contained in:
Thomas Segismont
2020-01-09 16:05:04 +01:00
committed by Julien Viet
parent 97ea217dca
commit 950b1b96be

View File

@@ -488,7 +488,7 @@ public interface Future<T> extends AsyncResult<T> {
*
* @return a {@link CompletionStage} that completes when this future resolves
*/
@GenIgnore(GenIgnore.PERMITTED_TYPE)
@GenIgnore
default CompletionStage<T> toCompletionStage() {
CompletableFuture<T> completableFuture = new CompletableFuture<>();
this.setHandler(ar -> {
@@ -510,7 +510,7 @@ public interface Future<T> extends AsyncResult<T> {
* @param <T> the result type
* @return a Vert.x future that resolves when {@code completionStage} resolves
*/
@GenIgnore(GenIgnore.PERMITTED_TYPE)
@GenIgnore
static <T> Future<T> fromCompletionStage(CompletionStage<T> completionStage) {
Promise<T> promise = Promise.promise();
completionStage.whenComplete((value, err) -> {
@@ -533,7 +533,7 @@ public interface Future<T> extends AsyncResult<T> {
* @param <T> the result type
* @return a Vert.x future that resolves when {@code completionStage} resolves
*/
@GenIgnore(GenIgnore.PERMITTED_TYPE)
@GenIgnore
static <T> Future<T> fromCompletionStage(CompletionStage<T> completionStage, Context context) {
Promise<T> promise = ((ContextInternal) context).promise();
completionStage.whenComplete((value, err) -> {