Replace Vert.x callback methods with methods returning Future
ProprietaryVert.x 5 removed the methods that take a Handler<AsyncResult<T>> callback as their last argument. Each call such as server.listen(8080, ar -> ...) becomes server.listen(8080).onComplete(ar -> ...), using the method that returns a Future<T> in Vert.x 5. A null callback is dropped. Calls whose result is used, such as a fluent chain that continues after the callback method, are left alone, as are callback methods without a Future counterpart in Vert.x 5.
io. moderne. vertx. CallbackToFuturemod run . --recipe= io. moderne. vertx. CallbackToFutureInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.