Channel Types
Learn about types of channels based on their capacity size and how to use those channels.
We'll cover the following...
We'll cover the following...
Depending on the capacity size we set, we distinguish four types of channels.
-
Unlimited: Channel with capacity
Channel.UNLIMITEDthat has an unlimited capacity buffer, andsendnever suspends. -
Buffered: Channel with concrete capacity size or
Channel.BUFFERED(which is 64 by default and can be overridden bykotlinx.coroutines.channels.de...