doc/go1.18: add new sync.[RW]Mutex methods

CL 319769

Updates #47694

Change-Id: I9655af0d249926617645c33617d53b73f985aa19
Reviewed-on: https://go-review.googlesource.com/c/go/+/368797
Trust: Jeremy Faller <jeremy@golang.org>
Run-TryBot: Jeremy Faller <jeremy@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Jeremy Faller 2021-12-02 13:33:18 -05:00
parent 870f33f6ef
commit d16a57542a

View file

@ -740,7 +740,11 @@ Do not send CLs removing the interior tags from such phrases.
<dl id="sync"><dt><a href="/pkg/sync/">sync</a></dt>
<dd>
<p><!-- CL 319769 -->
TODO: <a href="https://golang.org/cl/319769">https://golang.org/cl/319769</a>: add Mutex.TryLock, RWMutex.TryLock, RWMutex.TryRLock
The new methods
<a href="/pkg/sync#Mutex.TryLock"><code>Mutex.TryLock</code></a>,
<a href="/pkg/sync#RWMutex.TryLock"><code>RWMutex.TryLock</code></a>, and
<a href="/pkg/sync#RWMutex.TryRLock"><code>RWMutex.TryRLock</code></a>,
will acquire the lock if it is not currently held.
</p>
</dd>
</dl><!-- sync -->