MCPcopy
hub / github.com/IBM/sarama / makeResponsePromise

Function makeResponsePromise

broker.go:1095–1102  ·  view source on GitHub ↗
(res protocolBody)

Source from the content-addressed store, hash-verified

1093}
1094
1095func makeResponsePromise(res protocolBody) *responsePromise {
1096 promise := &responsePromise{
1097 response: res,
1098 packets: make(chan []byte),
1099 errors: make(chan error),
1100 }
1101 return promise
1102}
1103
1104// b.lock must be held by caller
1105func (b *Broker) sendWithPromise(rb protocolBody, promise *responsePromise) error {

Callers 2

sendMethod · 0.85
authenticateViaSASLv1Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected