DEBSOURCES
Skip Quicknav
sources / gitlab-agent / 16.1.3-2 / internal / tool / syncz / synz.go
123456789
package syncz import "sync" func RunWithMutex[T any](mu *sync.Mutex, f func() T) T { mu.Lock() defer mu.Unlock() return f() }