Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.0.0.Beta3: getConnectionAwait is deprecated but no replacement available #196

Open
blindpirate opened this issue Oct 18, 2020 · 0 comments
Labels

Comments

@blindpirate
Copy link

Version

4.0.0.Beta3

Context

Originally eclipse-vertx/vertx-sql-client#785

Javadoc says "use getConnection().await()", but there's no getConnection() in SQLClient.

@Deprecated(message = "Instead use getConnection returning a future and chain with await()", replaceWith = ReplaceWith("getConnection().await()"))
suspend fun SQLClient.getConnectionAwait(): SQLConnection {
  return awaitResult {
    this.getConnection(it)
  }
}

https://github.com/vert-x3/vertx-jdbc-client/blob/master/src/main/java/io/vertx/ext/sql/SQLClient.java#L42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant