Skip to content

Instantly share code, notes, and snippets.

@fergusonm
Created January 26, 2021 23:09
Show Gist options
  • Save fergusonm/2a87652f85e7391b922245e7e1412958 to your computer and use it in GitHub Desktop.
Save fergusonm/2a87652f85e7391b922245e7e1412958 to your computer and use it in GitHub Desktop.
Basic one shot event flow
private val eventChannel = Channel<Event>(Channel.BUFFERED)
val eventsFlow = eventChannel.receiveAsFlow()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment