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

Method Put

writer.go:936–946  ·  view source on GitHub ↗
(batch *writeBatch)

Source from the content-addressed store, hash-verified

934}
935
936func (b *batchQueue) Put(batch *writeBatch) bool {
937 b.cond.L.Lock()
938 defer b.cond.L.Unlock()
939 defer b.cond.Broadcast()
940
941 if b.closed {
942 return false
943 }
944 b.queue = append(b.queue, batch)
945 return true
946}
947
948func (b *batchQueue) Get() *writeBatch {
949 b.cond.L.Lock()

Callers 15

BalanceMethod · 0.80
BalanceMethod · 0.80
releaseBufferFunction · 0.80
writeMessagesMethod · 0.80
awaitBatchMethod · 0.80
closeMethod · 0.80
MarshalFunction · 0.80
unrefMethod · 0.80
unrefMethod · 0.80

Calls

no outgoing calls