Sign in
go
/
website
/
579683a2b769a1db0cb73af8af12183db5fe5e39
/
.
/
_content
/
tour
/
concurrency
/
buffered-channels.go
blob: b5abf10ef8159b41a713077b5cea04bd72a20f76 [
file
] [
log
] [
blame
]
// +build OMIT
package main
import "fmt"
func main() {
ch := make(chan int, 2)
ch <- 1
ch <- 2
fmt.Println(<-ch)
fmt.Println(<-ch)
}