Sign in
go
/
website
/
a1c9012b542bb9285233aa48a6c8b73a24c3b6a9
/
.
/
_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)
}