-
Notifications
You must be signed in to change notification settings - Fork 149
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
Feature request: Add Source.multi
method
#1238
Comments
I would prefer overloading |
I'm not sure about this, So:
Which is a little verbos but very clear |
Fair to me. It will be easier to use on Java. |
I vote +1 to |
How about |
okey |
I just checked https://github.com/smallrye/smallrye-mutiny, which is using Multi.createFrom().items(1, 2, 3, 4, 5)
.onItem().transform(i -> i * 2)
.select().first(3)
.onFailure().recoverWithItem(0)
.subscribe().with(System.out::println); |
Motivation:
There are many
Source.from(Arrays.asList(...))
in Java, I think we can add something likeSource.multi(...)
which work as theFlux.Just(T ...t)
.Result:
Replace
Source.from(Arrays.asList(1,2,3))
toSource.multi(1,2,3))
The text was updated successfully, but these errors were encountered: