Skip to content

Instantly share code, notes, and snippets.

@teivah
Created May 30, 2018 13:23
Show Gist options
  • Save teivah/a07771601aae149cb950a32c78a580d9 to your computer and use it in GitHub Desktop.
Save teivah/a07771601aae149cb950a32c78a580d9 to your computer and use it in GitHub Desktop.
vertx.createHttpServer().requestHandler(router::accept).listen(8080, result -> {
if (result.succeeded()) {
startFuture.complete();
} else {
startFuture.fail(result.cause());
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment