]> Cypherpunks repositories - gostls13.git/commit
internal/sync: add Swap to HashTrieMap
authorMichael Anthony Knyszek <mknyszek@google.com>
Fri, 21 Jun 2024 21:00:15 +0000 (21:00 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 18 Nov 2024 20:35:14 +0000 (20:35 +0000)
commit28bac5640cfd889a795bd7d7d24e6d788a985ead
treec3eb6ae63fc9d3907b8d3696bec1b81ecb09a6be
parent85fa418fd5bec603dd87254178e64afd1782bd35
internal/sync: add Swap to HashTrieMap

This change adds the Swap operation (with the same semantics as
sync.Map's Swap) to HashTrieMap.

Change-Id: I8697a0c8c2eb761e2452a41b868b590ccbfa5c03
Reviewed-on: https://go-review.googlesource.com/c/go/+/594064
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
src/internal/sync/hashtriemap.go
src/internal/sync/hashtriemap_test.go