Skip to content

Instantly share code, notes, and snippets.

@matzew
Created July 5, 2018 12:45
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 matzew/a2bca4e6c5ab8eb91461e0619f97701c to your computer and use it in GitHub Desktop.
Save matzew/a2bca4e6c5ab8eb91461e0619f97701c to your computer and use it in GitHub Desktop.

This:

        final HttpServer server = vertx.createHttpServer();
        final Flowable<HttpServerRequest> requestFlowable = server.requestStream().toFlowable();

or

that:

        final Flowable<HttpServerRequest> requestFlowable = vertx.createHttpServer()
                                                                  .requestStream().toFlowable();
@sjwoodman
Copy link

I don't have a strong preference. #2 is more succinct, #1 perhaps slightly more readable.

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