MCPcopy
hub / github.com/segmentio/kafka-go / await

Method await

transport.go:932–945  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

930}
931
932func (p *joined) await(ctx context.Context) (Response, error) {
933 results := make([]interface{}, len(p.promises))
934
935 for i, sub := range p.promises {
936 m, err := sub.await(ctx)
937 if err != nil {
938 results[i] = err
939 } else {
940 results[i] = m
941 }
942 }
943
944 return p.merger.Merge(p.requests, results)
945}
946
947// Default dialer used by the transport connections when no Dial function
948// was configured by the program.

Callers

nothing calls this directly

Calls 2

awaitMethod · 0.65
MergeMethod · 0.65

Tested by

no test coverage detected