]> Cypherpunks repositories - gostls13.git/commit
internal/concurrent: make HashTrieMap iteration more idiomatic
authorMichael Anthony Knyszek <mknyszek@google.com>
Sat, 18 May 2024 17:02:54 +0000 (17:02 +0000)
committerMichael Knyszek <mknyszek@google.com>
Wed, 22 May 2024 16:01:55 +0000 (16:01 +0000)
commit3a3837f422e2b37c730793bdbeadcc0530e11368
treeed3565361e5e9a0f538f17601cd0a94b2ad8c29a
parentd0edd9acc80a16ca1dd9c6f9045fdd34efabcd42
internal/concurrent: make HashTrieMap iteration more idiomatic

Currently a HashTrieMap has a method called Enumerate whose method
closure is an iter.Seq2, but the current convention is to name the
method All and return an iter.Seq2. This is an easy transformation, so
do it now.

Change-Id: I323e505008b7df3a9e20fe8c223b281a8c290006
Reviewed-on: https://go-review.googlesource.com/c/go/+/586995
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/internal/concurrent/hashtriemap.go
src/internal/concurrent/hashtriemap_test.go
src/unique/handle.go