diff --git a/src/main/java/io/vertx/core/Future.java b/src/main/java/io/vertx/core/Future.java index 3bdea6321..adc4dd6aa 100644 --- a/src/main/java/io/vertx/core/Future.java +++ b/src/main/java/io/vertx/core/Future.java @@ -150,6 +150,13 @@ public interface Future extends AsyncResult { @Override boolean failed(); + /** + * Alias for {@link #compose(Function)}. + */ + default Future flatMap(Function> mapper) { + return compose(mapper); + } + /** * Compose this future with a {@code mapper} function.

*