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

Method close

async_producer.go:269–279  ·  view source on GitHub ↗

close shuts down the muter, waking any goroutines blocked in waitUntilMuted.

()

Source from the content-addressed store, hash-verified

267
268// close shuts down the muter, waking any goroutines blocked in waitUntilMuted.
269func (m *partitionMuter) close() {
270 m.mu.Lock()
271 defer m.mu.Unlock()
272
273 if m.closed {
274 return
275 }
276 m.closed = true
277 close(m.unmuteSignal)
278 m.cond.Broadcast()
279}
280
281// NewAsyncProducer creates a new AsyncProducer using the given broker addresses and configuration.
282func NewAsyncProducer(addrs []string, conf *Config) (AsyncProducer, error) {

Callers 2

shutdownMethod · 0.80

Calls

no outgoing calls