<@U6P03BM0W> I'm assuming you're using KotlinX Cor...
# kodein
s
@dave08 I'm assuming you're using KotlinX Coroutines. Your issue is related to your usage of Channels 😉 A
BroadcastChannel
is a
SendChannel
, but not a
ReceiveChannel
. To get a
ReceiveChannel
from a
BroadcastChannel
, you need to call
openSubscription
.
Copy code
bind() from singleton { BroadcastChannel<SyncEvents>(Channel.CONFLATED) }
    
bind<ReceiveChannel<SyncEvents>>() with provider { instance<BroadcastChannel<SyncEvents>>().openSubscription() }