]> Cypherpunks repositories - gostls13.git/commit
internal/sync: add LoadAndDelete to HashTrieMap
authorMichael Anthony Knyszek <mknyszek@google.com>
Tue, 13 Aug 2024 16:31:27 +0000 (16:31 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 18 Nov 2024 20:35:22 +0000 (20:35 +0000)
commit700c7b95ae001244e60e820dcc4f63ae4f5fc5b1
treedbd555767ab1d1ff445b0b47d877394cc128c227
parent872031dc10f30380663eda1c83d830c19eb13dff
internal/sync: add LoadAndDelete to HashTrieMap

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

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