MCPcopy Create free account
hub / github.com/cel-expr/cel-go / Release

Method Release

interpreter/async.go:492–503  ·  view source on GitHub ↗

Release releases a concurrency slot and decrements the active calls count (used for defensive recovery).

()

Source from the content-addressed store, hash-verified

490
491// Release releases a concurrency slot and decrements the active calls count (used for defensive recovery).
492func (g *asyncGate) Release() {
493 if g == nil {
494 return
495 }
496 if g.semaphore != nil {
497 select {
498 case <-g.semaphore:
499 default:
500 }
501 }
502 g.activeCalls.Add(-1)
503}
504
505// Complete releases a concurrency slot and notifies completions.
506func (g *asyncGate) Complete(ctx context.Context, callID int64) {

Callers 2

CompleteMethod · 0.95
launchMethod · 0.45

Calls 1

AddMethod · 0.65

Tested by

no test coverage detected