vert-x3 / vertx-lang-kotlin

Vert.x for Kotlin
Apache License 2.0
296 stars 68 forks source link

clusteredVertxAwait deprecated but no alternative available #186

Closed cdekok closed 3 years ago

cdekok commented 3 years ago

Version

4.0.0

Context

clusteredVertxAwait is marked as deprecated

  @Deprecated(message = "Instead use clusteredVertx returning a future and chain with await()", replaceWith = ReplaceWith("clusteredVertx(options).await()"))

But there is no clusteredVertx function to await on, the rest of the functions do have an implementation to await.

Do you have a reproducer?

Vertx.clusteredVertx(options).await()

Result..

Unresolved reference: clusteredVertx
vietj commented 3 years ago

it is not clear what you are experiencing here, there is a Vertx.clusteredVertx(options) that returns a future type:

  static Future<Vertx> clusteredVertx(VertxOptions options) {
    Promise<Vertx> promise = Promise.promise();
    clusteredVertx(options, promise);
    return promise.future();
  }

you should call await() on this Future

can you provide a reproducer project ?

cdekok commented 3 years ago

Oh your right sorry I guess it was some gradle cache it compiles correctly now.