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

Integration of Qute and Mutiny #7101

Merged
merged 5 commits into from Feb 17, 2020

Conversation

cescoffier
Copy link
Member

This PR is part of the #7097 epic. It re-implement the reactive support of Qute to use Mutiny instead of RX:

  • Implement a new Publisher Factory using Mutiny
  • Remove the RX factory
  • Switch the extension to use the new reactive support
  • Add some tests
  • Extend documentation

@cescoffier cescoffier added this to the 1.3.0 milestone Feb 9, 2020
@boring-cyborg boring-cyborg bot added area/dependencies Pull requests that update a dependency file area/documentation area/qute The template engine labels Feb 9, 2020
@cescoffier cescoffier mentioned this pull request Feb 9, 2020
16 tasks
Uni<String> uni = Uni.createFrom().completionStage(() -> template.data("name", "neo").renderAsync());
----

In this case, the rendering only starts once the subscriber requests it.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it's the same in both cases? Or did I misunderstand something?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you use a renderAsync() the rendering process starts even if you don't have anyone listening / prepared to receive the output. With Uni or Multi, it would only start if someone is there to receive it.

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me but I'll let @mkouba have the final say on this one.

@mkouba mkouba merged commit 5530adb into quarkusio:master Feb 17, 2020
@cescoffier cescoffier deleted the features/qute-mutiny branch February 26, 2020 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dependencies Pull requests that update a dependency file area/documentation area/qute The template engine
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants