MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / InvokeDone

Method InvokeDone

pkg/controller/rtctrl/runtime.go:316–332  ·  view source on GitHub ↗
(request *RequestInfo, signal bool)

Source from the content-addressed store, hash-verified

314}
315
316func (info *RuntimeInfo) InvokeDone(request *RequestInfo, signal bool) {
317 if _, load := info.requestMap.Load(request.RequestID); !load {
318 return
319 }
320
321 if signal {
322 request.Notify()
323 }
324
325 if request.Status == StatusSuccess {
326 info.AcceptReqCnt++
327 } else if request.Status == StatusFailed {
328 info.RejectReqCnt++
329 }
330
331 info.requestMap.Delete(request.RequestID)
332}
333
334// Wait
335func (info *RuntimeInfo) Wait(timeout int) bool {

Callers 3

recvHTTPResponseLoopMethod · 0.95
handleInvokeDoneMethod · 0.95
sendHTTPRequestLoopMethod · 0.45

Calls 3

LoadMethod · 0.80
NotifyMethod · 0.80
DeleteMethod · 0.65

Tested by

no test coverage detected