From c085c6cbff448830913d8e7e9b1141475eeda59e Mon Sep 17 00:00:00 2001 From: "Bryan C. Mills" Date: Tue, 15 Nov 2022 17:07:00 -0500 Subject: [PATCH] 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 --- doc/go1.20.html | 11 +++++++++++ 1 file changed, 11 insertions(+) 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

-- 2.50.0