Open FilippoVigani opened 3 years ago
Hi @FilippoVigani we have no concrete plans for this yet, but there are rough plans for a hivemq-mqtt-client-kotlin module with some extension methods where such an API could reside. Reactive Streams and Kotlin Flow should be easily interoperable (https://kotlinlang.org/docs/reference/coroutines/flow.html#flow-and-reactive-streams) and the architecture of the library is built to enable additions of new APIs easily (as we already did with the Rx, Async, Blocking and Reactor APIs). You may also create a PR with a POC for a kotlin API, if you like.
@FilippoVigani supported It is important in the future to we able of using corroutines out-of-the-box
And thank you for this awsome client!
It's now May 2022. Any movement on this?
Hi all - just an update even though there isn't much - we've talked about this internally but nothing has been planned as of yet.
We see the comments and the votes in favor here. Keep them up as this allows us to better prioritize what gets done next.
Are there any plans in implementing an interface to expose the methods via Kotlin coroutines and Flows? The reactive API is great but for Android or KMP users, using coroutines is a better choice in most cases.