MCPcopy
hub / github.com/grpc/grpc-go / newControlBuffer

Function newControlBuffer

internal/transport/controlbuf.go:327–333  ·  view source on GitHub ↗
(done <-chan struct{})

Source from the content-addressed store, hash-verified

325}
326
327func newControlBuffer(done <-chan struct{}) *controlBuffer {
328 return &controlBuffer{
329 wakeupCh: make(chan struct{}, 1),
330 list: &itemList{},
331 done: done,
332 }
333}
334
335// throttle blocks if there are too many frames in the control buf that
336// represent the response of an action initiated by the peer, like

Callers 4

newTestHTTP2ClientFunction · 0.85
NewServerTransportFunction · 0.85
NewHTTP2ClientFunction · 0.85

Calls

no outgoing calls

Tested by 2

newTestHTTP2ClientFunction · 0.68