mirror of
https://github.com/golang/go
synced 2024-09-06 00:19:45 +00:00
doc: document additional atomic.Value methods
For #44513. Fixes #46022. Change-Id: Id1d87fbd4034461953760ce77201f87ed723ff88 Reviewed-on: https://go-review.googlesource.com/c/go/+/319549 Trust: Keith Randall <khr@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
3c656445f1
commit
217f5dd496
|
@ -507,7 +507,9 @@ Do not send CLs removing the interior tags from such phrases.
|
|||
<dl id="sync/atomic"><dt><a href="/pkg/sync/atomic/">sync/atomic</a></dt>
|
||||
<dd>
|
||||
<p><!-- CL 241678 -->
|
||||
TODO: <a href="https://golang.org/cl/241678">https://golang.org/cl/241678</a>: add (*Value).Swap and (*Value).CompareAndSwap
|
||||
<code>atomic.Value</code> now has <a href="/pkg/sync/atomic/#Value.Swap"><code>Swap</code></a> and
|
||||
<a href="/pkg/sync/atomic/#Value.CompareAndSwap"><code>CompareAndSwap</code></a> methods that provide
|
||||
additional atomic operations.
|
||||
</p>
|
||||
</dd>
|
||||
</dl><!-- sync/atomic -->
|
||||
|
|
Loading…
Reference in a new issue