hivemq-mqtt-client icon indicating copy to clipboard operation
hivemq-mqtt-client copied to clipboard

Any plans for writing a Kotlin Coroutines/Flow API?

Open FilippoVigani opened this issue 4 years ago • 6 comments

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.

FilippoVigani avatar Dec 16 '20 08:12 FilippoVigani

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.

SgtSilvio avatar Jan 04 '21 15:01 SgtSilvio

@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!

rcaceiro avatar Mar 05 '21 12:03 rcaceiro

It's now May 2022. Any movement on this?

matthewadams avatar May 27 '22 14:05 matthewadams

  1. any news about it?

tessmerandre avatar Feb 14 '24 17:02 tessmerandre

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.

pglombardo avatar Mar 06 '24 12:03 pglombardo