We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 870f33f commit d16a575Copy full SHA for d16a575
doc/go1.18.html
@@ -740,7 +740,11 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
740
<dl id="sync"><dt><a href="/pkg/sync/">sync</a></dt>
741
<dd>
742
<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
+ 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.
748
</p>
749
</dd>
750
</dl><!-- sync -->
0 commit comments