MCPcopy
hub / github.com/google/ax / markInFlight

Method markInFlight

internal/server/server.go:161–176  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

159}
160
161func (s *Server) markInFlight(id string) (exists bool, cleanup func()) {
162 s.inFlightMu.Lock()
163 defer s.inFlightMu.Unlock()
164
165 _, ok := s.inFlight[id]
166 if ok {
167 return true, func() {}
168 }
169 s.inFlight[id] = struct{}{}
170
171 return false, func() {
172 s.inFlightMu.Lock()
173 delete(s.inFlight, id)
174 s.inFlightMu.Unlock()
175 }
176}

Callers 3

ExecMethod · 0.95
ForkConversationMethod · 0.95
DeleteConversationMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected