mirror of https://github.com/golang/go.git
doc/go1.20: document new sync.Map methods
For #51972. Change-Id: I86dcd8abc3b62e20b524541327af2cc891cb251d Reviewed-on: https://go-review.googlesource.com/c/go/+/450797 Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Bryan Mills <bcmills@google.com> Run-TryBot: Bryan Mills <bcmills@google.com>
This commit is contained in:
parent
8477562ce5
commit
c085c6cbff
|
|
@ -740,6 +740,17 @@ proxyHandler := &httputil.ReverseProxy{
|
|||
</dd>
|
||||
</dl><!-- strings -->
|
||||
|
||||
<dl id="sync"><dt><a href="/pkg/sync/">sync</a></dt>
|
||||
<dd>
|
||||
<p><!-- CL 399094, https://go.dev/issue/51972 -->
|
||||
The new methods <a href="/pkg/sync/#Map.Swap"><code>Map.Swap</code></a>,
|
||||
<a href="/pkg/sync/#Map.CompareAndSwap"><code>Map.CompareAndSwap</code></a>, and
|
||||
<a href="/pkg/sync/#Map.CompareAndDelete"><code>Map.CompareAndDelete</code></a>
|
||||
allow existing map entries to be updated atomically.
|
||||
</p>
|
||||
</dd>
|
||||
</dl><!-- sync -->
|
||||
|
||||
<dl id="syscall"><dt><a href="/pkg/syscall/">syscall</a></dt>
|
||||
<dd>
|
||||
<p><!-- CL 407574 -->
|
||||
|
|
|
|||
Loading…
Reference in New Issue