Skip to content

Commit d16a575

Browse files
committed
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 <[email protected]> Run-TryBot: Jeremy Faller <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 870f33f commit d16a575

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/go1.18.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,11 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
740740
<dl id="sync"><dt><a href="/pkg/sync/">sync</a></dt>
741741
<dd>
742742
<p><!-- CL 319769 -->
743-
TODO: <a href="https://golang.org/cl/319769">https://golang.org/cl/319769</a>: add Mutex.TryLock, RWMutex.TryLock, RWMutex.TryRLock
743+
The new methods
744+
<a href="/pkg/sync#Mutex.TryLock"><code>Mutex.TryLock</code></a>,
745+
<a href="/pkg/sync#RWMutex.TryLock"><code>RWMutex.TryLock</code></a>, and
746+
<a href="/pkg/sync#RWMutex.TryRLock"><code>RWMutex.TryRLock</code></a>,
747+
will acquire the lock if it is not currently held.
744748
</p>
745749
</dd>
746750
</dl><!-- sync -->

0 commit comments

Comments
 (0)