Search⌘ K
AI Features

Channel Types

Explore the four main channel types in Kotlin coroutines: unlimited, buffered, rendezvous, and conflated. Understand their capacities and practical uses to manage data flow effectively between producers and receivers in concurrent Android applications.

We'll cover the following...

Depending on the capacity size we set, we distinguish four types of channels.

  • Unlimited: Channel with capacity Channel.UNLIMITED that has an unlimited capacity buffer, and send never suspends.

  • Buffered: Channel with concrete capacity size or Channel.BUFFERED (which is 64 by default and can be overridden by kotlinx.coroutines.channels.de ...