Skip to content

Instantly share code, notes, and snippets.

@Tetraquark
Created February 2, 2020 10:33
Show Gist options
  • Select an option

  • Save Tetraquark/a62e96fe13719f65950e7a02df699272 to your computer and use it in GitHub Desktop.

Select an option

Save Tetraquark/a62e96fe13719f65950e7a02df699272 to your computer and use it in GitHub Desktop.
What is channel? ProduceBuilder
@ExperimentalCoroutinesApi
public fun <E> CoroutineScope.produce(
context: CoroutineContext = EmptyCoroutineContext,
capacity: Int = 0,
@BuilderInference block: suspend ProducerScope<E>.() -> Unit
): ReceiveChannel<E>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment