Can anyone point me to a stable implementation of ...
# coroutines
j
Can anyone point me to a stable implementation of Event bus with Kotlin Coroutines which works along with the android lifecycles?
t
I don't think such a stable library exists yet, as stable coroutines are quite recent. But you might build an EventBus yourself by wrapping a
BroadcastChannel
: send an instance of a
sealed class
as your message, and all components consuming that channel will receive it.
j
Will give that a try. Thanks @tseisel
l
EventBus is easy to mess up, beware.
1