MCPcopy
hub / github.com/dropbox/godropbox / roundRobinResourcePool

Struct roundRobinResourcePool

resource_pool/round_robin_resource_pool.go:25–35  ·  view source on GitHub ↗

A resource pool implementation which returns handles from the registered resource locations in a round robin fashion.

Source from the content-addressed store, hash-verified

23// A resource pool implementation which returns handles from the registered
24// resource locations in a round robin fashion.
25type roundRobinResourcePool struct {
26 options Options
27
28 createPool func(Options) ResourcePool
29
30 rwMutex sync.RWMutex
31 isLameDuck bool
32 pools []*ResourceLocationPool
33
34 counter *int64 // atomic counter
35}
36
37// This returns a RoundRobinResourcePool.
38func NewRoundRobinResourcePool(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected