-
Notifications
You must be signed in to change notification settings - Fork 24
Channels ‐ About
Devrath edited this page Dec 23, 2023
·
8 revisions
- Channels are used for asynchronous communication between the coroutines.
- Channel can be imagined as a pipe where you can add the data from one end and get the data from another end.
- Elements in the channel are processed in the same order as they arrive in.
- There can be multiple
producersthat send the data to the channel and there can be multipleconsumersthat receive the data from the channel but on the receiving side among all the data received one of the consumers will receive it meaning the messages sent in channels are handled only once on the receiving side.
