use

inline suspend fun <R> Vertx.use(block: (Vertx) -> R): R(source)

Execute the block code and close the Vertx instance like kotlin.use on an AutoCloseable.