package
0.37.2
Repository: https://github.com/thanos-io/thanos.git
Documentation: pkg.go.dev

# Functions

MustNewBucketedPool is like NewBucketedPool but panics if construction fails.
NewBucketedPool returns a new BucketedPool with size buckets for minSize to maxSize increasing by the given factor and maximum number of used items.

# Variables

ErrPoolExhausted is returned if a pool cannot provide the requested slice.

# Structs

BucketedPool is a bucketed pool for variably sized T slices.
NoopPool is pool that always allocated required slice on heap and ignore puts.

# Interfaces

Pool is a pool for slices of type T that can be reused.
WorkerPool is a pool of goroutines that are reusable, similar to Java ThreadPool.

# Type aliases

Work is a unit of item to be worked on, like Java Runnable.