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

Function NewAsyncResponse

modules/frontend/pipeline/responses.go:43–47  ·  view source on GitHub ↗

NewAsyncResponse creates a new AsyncResponse that wraps a single http.Response.

(r combiner.PipelineResponse)

Source from the content-addressed store, hash-verified

41
42// NewAsyncResponse creates a new AsyncResponse that wraps a single http.Response.
43func NewAsyncResponse(r combiner.PipelineResponse) Responses[combiner.PipelineResponse] {
44 return syncResponse{
45 r: r,
46 }
47}
48
49// NewHTTPToAsyncResponse creates a new AsyncResponse that wraps a single http.Response.
50func NewHTTPToAsyncResponse(r *http.Response) Responses[combiner.PipelineResponse] {

Callers 4

RoundTripMethod · 0.92
RoundTripMethod · 0.92

Calls

no outgoing calls

Tested by 2