Skip to content

Instantly share code, notes, and snippets.

@AlexeySoshin
Last active July 11, 2019 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexeySoshin/cb0ba2036fd1c3c49f083cf8cca0f06a to your computer and use it in GitHub Desktop.
Save AlexeySoshin/cb0ba2036fd1c3c49f083cf8cca0f06a to your computer and use it in GitHub Desktop.
public SQLClient getConnection(Handler<AsyncResult<SQLConnection>> handler) {
Context ctx = vertx.getOrCreateContext();
getConnection(ctx, ar -> ctx.runOnContext(v -> handler.handle(ar)));
return this;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment