Created
January 2, 2022 11:03
-
-
Save tamtom/4a7ad72ed421aa90843e5216c40c23de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In your view model | |
private val _eventChannel = Channel<Event>(Channel.BUFFERED) | |
val events = _eventChannel.receiveAsFlow() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment