From: Bryan C. Mills Date: Tue, 15 Nov 2022 22:07:00 +0000 (-0500) Subject: doc/go1.20: document new sync.Map methods X-Git-Tag: go1.20rc1~233 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c085c6cbff448830913d8e7e9b1141475eeda59e;p=gostls13.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 TryBot-Result: Gopher Robot Auto-Submit: Bryan Mills Run-TryBot: Bryan Mills --- diff --git a/doc/go1.20.html b/doc/go1.20.html index 509cab9253..3d4eeb0f36 100644 --- a/doc/go1.20.html +++ b/doc/go1.20.html @@ -740,6 +740,17 @@ proxyHandler := &httputil.ReverseProxy{ +
sync
+
+

+ The new methods Map.Swap, + Map.CompareAndSwap, and + Map.CompareAndDelete + allow existing map entries to be updated atomically. +

+
+
+
syscall