MCPcopy
hub / github.com/google/gvisor / GoQueue

Struct GoQueue

pkg/aio/aio.go:101–107  ·  view source on GitHub ↗

GoQueue implements Queue using a pool of worker goroutines.

Source from the content-addressed store, hash-verified

99
100// GoQueue implements Queue using a pool of worker goroutines.
101type GoQueue struct {
102 requests chan Request
103 completions chan Completion
104 shutdown chan struct{}
105 workers sync.WaitGroup
106 numWorkers int
107}
108
109// NewGoQueue returns a new GoQueue with the given capacity.
110func NewGoQueue(cap int) *GoQueue {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected