I don't understand why the callback in this code does not execute after Verticle has been successfully deployed?
public class VertxApp{
public static void main(String[] args) {
Vertx.vertx().deployVerticle(new MyVerticle(), res -> {
System.out.println(res.result());
});
}
}
The MyVerticle class:
public class MyVerticle extends AbstractVerticle {
@Override
public void start(Future<Void> startFuture) {
System.out.println("MyVerticle started!");
}
@Override
public void stop(Future stopFuture) throws Exception {
System.out.println("MyVerticle stopped!");
}
}