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

Add support for Mutiny #114

Open
Plawn opened this issue Jan 12, 2023 · 6 comments
Open

Add support for Mutiny #114

Plawn opened this issue Jan 12, 2023 · 6 comments

Comments

@Plawn
Copy link

Plawn commented Jan 12, 2023

Add support for mutiny as a reactive library

@lhotari
Copy link
Member

lhotari commented Jan 25, 2023

@Plawn There's already a solution described in #10 (comment), but that hasn't been explicitly tested. Would that solution work for you?

@lhotari
Copy link
Member

lhotari commented Jan 25, 2023

The documentation is missing, there's #15 for tracking that.

@Plawn
Copy link
Author

Plawn commented Jan 26, 2023

Hello, @lhotari

I wil check this and come back to you as soon as possible

@cbornet
Copy link
Contributor

cbornet commented Jan 29, 2023

For Mutiny, that would be something like (on master):

Multi<MessageSpec<T>> messages = ...
Multi<MessageSendResult<T>> sendResults = Multi.createFrom().publisher(sender.sendMany(messageSpecs));

MessageSpec message = ...
Uni<MessageId> messageId = Uni.createFrom().publisher(sender.sendOne(messageSpec));

cbornet added a commit to cbornet/pulsar-client-reactive that referenced this issue Jan 29, 2023
cbornet added a commit to cbornet/pulsar-client-reactive that referenced this issue Jan 30, 2023
cbornet added a commit to cbornet/pulsar-client-reactive that referenced this issue Jan 30, 2023
@lhotari
Copy link
Member

lhotari commented Jan 30, 2023

@cbornet I think that Multi.createFrom().publisher(sender.sendMany(messageSpecs)); can be written as sender.sendMany(messageSpecs).as(Multi.createFrom()::publisher). That is the way suggested in #15.

@Plawn
Copy link
Author

Plawn commented Feb 10, 2023

Thanks !

@Plawn Plawn closed this as completed Feb 10, 2023
@Plawn Plawn reopened this Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants