You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Afaik Flow is designed to be a self contained, replayable, cold stream, so emission from outside of it's own scope wouldn't be part of the contract. I think what you're looking for is a Channel.
How can I emit new data to an existing Kotlin
Flow
? Currently I can only do it inside theflow
block like this:I want to do something like:
I can do it if I use Android
LiveData
:or something likes it in RxJava2 with
onNext
eventThe text was updated successfully, but these errors were encountered: