INNER CODE UNIT · Go

ReleaseResource

ovh/utask · utask.go:318

func ReleaseResource(name string) {
	if global == nil {
		return
	}
	s := global.resourceSemaphores[name]
	if s == nil {
		return
	}
	s.Release(1)
}

// ReleaseResources is an helper to call ReleaseResource with an array
func ReleaseResources(names []string) {
	for _, name := range names {
		ReleaseResource(name)
	}
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…