Channel Types
Learn about types of channels based on their capacity size and how to use those channels.
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, andsend
never suspends. -
Buffered: Channel with concrete capacity size or
Channel.BUFFERED
(which is 64 by default and can be overridden bykotlinx.coroutines.channels.de
...