MCPcopy Index your code
hub / github.com/github/copilot-sdk / pop

Method pop

go/copilot_request_handler.go:524–536  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

522}
523
524func (q *frameQueue) pop() (CopilotWebSocketMessage, bool) {
525 q.mu.Lock()
526 defer q.mu.Unlock()
527 for len(q.items) == 0 && !q.done {
528 q.cond.Wait()
529 }
530 if len(q.items) > 0 {
531 m := q.items[0]
532 q.items = q.items[1:]
533 return m, true
534 }
535 return CopilotWebSocketMessage{}, false
536}
537
538type pendingExchange struct {
539 mu sync.Mutex

Callers 15

create_sessionMethod · 0.80
resume_sessionMethod · 0.80
_runMethod · 0.80
_handle_hooks_invokeMethod · 0.80
requestMethod · 0.80
set_request_handlerMethod · 0.80
_handle_messageMethod · 0.80
handlerMethod · 0.80
rmMethod · 0.80
renameMethod · 0.80
HttpRequestStartMethod · 0.80

Calls

no outgoing calls

Tested by 3

handlerMethod · 0.64
rmMethod · 0.64
renameMethod · 0.64