4.4.6 Deprecations and breaking changes - vert-x3/wiki GitHub Wiki
Vertx Core
Deprecation of Future eventually method that takes a function as argument
https://github.com/eclipse-vertx/vert.x/pull/4827
The Vertx Future#eventually
method takes as parameter a Function<Void, Future<T>>
, this was developed for codegen which did not support Supplier
. The Future
object is not code generated anymore since Vert.x 4, we can therefore use Supplier
which is more suitable.
// Before
future.eventually(v -> someFuture());
// After
future.eventually(() -> someFuture());