MCPcopy
hub / github.com/go-task/task / releaseConcurrencyLimit

Method releaseConcurrencyLimit

concurrency.go:14–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12}
13
14func (e *Executor) releaseConcurrencyLimit() func() {
15 if e.concurrencySemaphore == nil {
16 return emptyFunc
17 }
18
19 <-e.concurrencySemaphore
20 return func() {
21 e.concurrencySemaphore <- struct{}{}
22 }
23}
24
25func emptyFunc() {}

Callers 3

runDepsMethod · 0.95
runCommandMethod · 0.95
startExecutionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected