Skip to content

Instantly share code, notes, and snippets.

@Tetraquark
Created February 2, 2020 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tetraquark/6bc20a619735f19fa342158cb2da7e80 to your computer and use it in GitHub Desktop.
Save Tetraquark/6bc20a619735f19fa342158cb2da7e80 to your computer and use it in GitHub Desktop.
What is channel? ProduceChannelExmpl
import kotlinx.coroutines.channels.produce
val receiveChannel = produce(context = Dispatchers.Default) {
for (i in 0..10) {
send(i)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment