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

Simplify Uni to Multi bridge (again) #632

Merged
merged 1 commit into from
Jul 20, 2021
Merged

Simplify Uni to Multi bridge (again) #632

merged 1 commit into from
Jul 20, 2021

Conversation

jponge
Copy link
Member

@jponge jponge commented Jul 20, 2021

No description provided.

@jponge jponge requested a review from cescoffier July 20, 2021 14:16
@jponge jponge added this to the 1.0.0 milestone Jul 20, 2021
@jponge jponge added enhancement New feature or request technical-debt Technical debt reduction labels Jul 20, 2021
Copy link
Contributor

@cescoffier cescoffier left a comment

Choose a reason for hiding this comment

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

Just asked a question about Multi.

import io.smallrye.mutiny.operators.AbstractUni;
import io.smallrye.mutiny.subscription.UniSubscriber;
import io.smallrye.mutiny.subscription.UniSubscription;

public final class UniToMultiPublisher<T> extends AbstractMulti<T> {
public final class UniToMultiPublisher<T> implements Publisher<T> {
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the reason to not be a Multi directly?

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought it's safer to have the Infrastructure involved again

@codecov
Copy link

codecov bot commented Jul 20, 2021

Codecov Report

Merging #632 (17280f7) into main (165a9c9) will increase coverage by 0.30%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main     #632      +/-   ##
============================================
+ Coverage     89.95%   90.26%   +0.30%     
- Complexity     3016     3028      +12     
============================================
  Files           395      395              
  Lines         11829    11825       -4     
  Branches       1478     1480       +2     
============================================
+ Hits          10641    10674      +33     
+ Misses          611      588      -23     
+ Partials        577      563      -14     
Impacted Files Coverage Δ
...rye/mutiny/converters/uni/UniToMultiPublisher.java 90.62% <100.00%> (+1.73%) ⬆️
...java/io/smallrye/mutiny/operators/AbstractUni.java 90.00% <100.00%> (ø)
...smallrye/mutiny/operators/multi/MultiEmitOnOp.java 89.52% <0.00%> (-0.96%) ⬇️
...tiny/operators/multi/MultiBufferWithTimeoutOp.java 74.78% <0.00%> (-0.85%) ⬇️
...smallrye/mutiny/helpers/test/AssertSubscriber.java 90.97% <0.00%> (+0.75%) ⬆️
...java/io/smallrye/mutiny/helpers/Subscriptions.java 80.11% <0.00%> (+1.10%) ⬆️
...mallrye/mutiny/operators/multi/MultiFlatMapOp.java 86.29% <0.00%> (+1.55%) ⬆️
...io/smallrye/mutiny/operators/uni/UniMemoizeOp.java 95.04% <0.00%> (+1.98%) ⬆️
...y/operators/multi/builders/IterableBasedMulti.java 84.04% <0.00%> (+2.12%) ⬆️
...subscription/SwitchableSubscriptionSubscriber.java 97.54% <0.00%> (+2.45%) ⬆️
... and 6 more

@jponge jponge merged commit 8d77b40 into main Jul 20, 2021
@jponge jponge deleted the simplify-uni-to-multi branch July 20, 2021 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request technical-debt Technical debt reduction
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants