1
0
mirror of https://github.com/golang/go synced 2024-11-11 22:20:22 -07:00

go spec: minor clarification on channel types

No language change.

R=r, rsc, iant, ken2, r2
CC=golang-dev
https://golang.org/cl/4168050
This commit is contained in:
Robert Griesemer 2011-02-15 11:33:12 -08:00
parent ec487e3d75
commit f14c29a311

View File

@ -1,5 +1,5 @@
<!-- title The Go Programming Language Specification -->
<!-- subtitle Version of February 8, 2011 -->
<!-- subtitle Version of February 15, 2011 -->
<!--
TODO
@ -1227,9 +1227,11 @@ make(chan int, 100)
<p>
The capacity, in number of elements, sets the size of the buffer in the channel. If the
capacity is greater than zero, the channel is asynchronous: provided the
buffer is not full, sends can succeed without blocking. If the capacity is zero
or absent, the communication succeeds only when both a sender and receiver are ready.
capacity is greater than zero, the channel is asynchronous: communication operations
succeed without blocking if the buffer is not full (sends) or not empty (receives),
and elements are received in the order they are sent.
If the capacity is zero or absent, the communication succeeds only when both a sender and
receiver are ready.
</p>
<p>