Skip to content
Advertisement

Tag: smallrye

How to call long running blocking void returning method with Mutiny reactive programming?

I have a chain of Async and Sync method invocation on Mutiny’s Uni, some methods are a long-running process with return type void. What is the proper way of invoking/calling them without blocking downstream? Below is the simple analogy code. Answer In general, use runSubscriptionOn and pass a specific executor: Note that it will constraint the concurrency to the number

How do i sort a Multi in smallrye mutiny

Other reactive libraries like project reactor offer sort methods for Publishers but there is no such method in mutiny. Their documentation doesn’t even talk about it. https://smallrye.io/smallrye-mutiny Right now i’m achieving the said functionality by doing this Is there a better way to do the same ? Answer I don’t believe there is a built-in/better way to do this. Mutiny

Advertisement