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

*