MCPcopy
hub / github.com/grafana/tempo / SendComplete

Method SendComplete

modules/frontend/pipeline/responses.go:132–134  ·  view source on GitHub ↗

SendComplete indicates the sender is done. We close the channel to give a clear signal to the consumer

()

Source from the content-addressed store, hash-verified

130
131// SendComplete indicates the sender is done. We close the channel to give a clear signal to the consumer
132func (a *asyncResponse) SendComplete() {
133 close(a.respChan)
134}
135
136// Next returns the next http.Response or an error if one is available. It always prefers an error over a response.
137// todo: review performance. There is a lot of channel access here

Callers 5

TestAsyncResponseFansInFunction · 0.80
addResponsesFunction · 0.80
NewAsyncSharderFuncFunction · 0.80
NewAsyncSharderChanFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestAsyncResponseFansInFunction · 0.64
addResponsesFunction · 0.64