MCPcopy Index your code
hub / github.com/coder/coder / WithBatchSize

Function WithBatchSize

coderd/agentapi/metadatabatcher/metadata_batcher.go:108–112  ·  view source on GitHub ↗
(size int)

Source from the content-addressed store, hash-verified

106type Option func(b *Batcher)
107
108func WithBatchSize(size int) Option {
109 return func(b *Batcher) {
110 b.maxBatchSize = size
111 }
112}
113
114func WithInterval(d time.Duration) Option {
115 return func(b *Batcher) {

Callers 2

TestBatchUpdateMetadataFunction · 0.92

Calls

no outgoing calls

Tested by 2

TestBatchUpdateMetadataFunction · 0.74