32
edits
Changes
Team Go
,no edit summary
== Channels ==
Channels are what Goroutines use to communicate with each other. They help Goroutines synchronize their execution. Channels can have directions that restrict them to just sending or receiving. Channels can have several parts to them: the type of element you can send through a channel, its capacity or buffer size and the direction of communication which is specified using a <- operator. Data can be sent from one end and received at the other, similar to how MPI threads communicate. A communication can be sent using '''t <- argument''' Or received using '''variable := <- t'''.