Update dependencies
This commit is contained in:
1 parent
f0641ffd6e
commit
5a9cfc022c
882 files changed
+68907
-24178
No files matched your search
+15
@@ -34,3 +34,18 @@ type (
|
||||
func NewCond(l Locker) *Cond {
|
||||
return sync.NewCond(l)
|
||||
}
|
||||
|
||||
// OnceFunc is a wrapper around sync.OnceFunc.
|
||||
func OnceFunc(f func()) func() {
|
||||
return sync.OnceFunc(f)
|
||||
}
|
||||
|
||||
// OnceValue is a wrapper around sync.OnceValue.
|
||||
func OnceValue[T any](f func() T) func() T {
|
||||
return sync.OnceValue(f)
|
||||
}
|
||||
|
||||
// OnceValues is a wrapper around sync.OnceValues.
|
||||
func OnceValues[T1, T2 any](f func() (T1, T2)) func() (T1, T2) {
|
||||
return sync.OnceValues(f)
|
||||
}
|
||||
Reference in new issue
Block a user