How can I send items to a Kotlin.Flow (like a Behaviorsubject)

If you want to get the latest value on subscription/collection you should use a ConflatedBroadcastChannel: private val channel = ConflatedBroadcastChannel<Boolean>() This will replicate BehaviourSubject, to expose the channel as a Flow: // Repository fun observe() { return channel.asFlow() } Now to send an event/value to that exposed Flow simple send to this channel. // Repository … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)