Changes

Jump to: navigation, search

Team Go

183 bytes added, 00:05, 18 December 2017
Channels
== 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.
 <source lang ="go:">
package main
32
edits

Navigation menu