summaryrefslogtreecommitdiff
path: root/syncutil
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-02-05 13:02:57 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-02-05 13:33:02 -0700
commit5a1a904b4264c6ee323c9bd433f9ee4da93c984d (patch)
tree035414c8e8f3b94e24b482e5096a3b4e3688e257 /syncutil
parent2d939c9c6e62395ed924fe7c5cd4c4b294e391a9 (diff)
typedsync: Bring up to being a mostly-drop-in replacement for Go 1.20 sync
Diffstat (limited to 'syncutil')
-rw-r--r--syncutil/cachemap.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/syncutil/cachemap.go b/syncutil/cachemap.go
index 8eab4bc..8c4dfc5 100644
--- a/syncutil/cachemap.go
+++ b/syncutil/cachemap.go
@@ -5,13 +5,11 @@
package syncutil
import (
- "sync"
-
"git.lukeshu.com/go/containers/typedsync"
)
type cacheVal[V any] struct {
- wg sync.WaitGroup
+ wg typedsync.WaitGroup
v V
}