eclipse-vertx / vert.x

Vert.x is a tool-kit for building reactive applications on the JVM
http://vertx.io
Other
14.32k stars 2.08k forks source link

Futurize MyVerticle start/stop example - backport to 4.x #5315

Closed julianladisch closed 2 months ago

julianladisch commented 2 months ago

(cherry picked from commit 31a03d7ae8075d29519272214989e111ef4e374e)

Motivation:

Avoid callback handlers in the MyVerticle examples, use a Future instead.

Conformance:

vietj commented 2 months ago

@julianladisch note this chapter is being rewritten in Vert.x 5 because we want to offer a new model based on Future instead of promise completion, see https://github.com/eclipse-vertx/vert.x/pull/5318