MCPcopy
hub / github.com/grafana/dskit / Close

Method Close

concurrency/worker.go:66–68  ·  view source on GitHub ↗

Close stops the workers of the pool. No new Go() calls should be performed after calling Close(). Close does NOT wait for all jobs to finish, it is the caller's responsibility to ensure that in the provided workloads. Close is intended to be used in tests to ensure that no goroutines are leaked.

()

Source from the content-addressed store, hash-verified

64// Close does NOT wait for all jobs to finish, it is the caller's responsibility to ensure that in the provided workloads.
65// Close is intended to be used in tests to ensure that no goroutines are leaked.
66func (p *ReusableGoroutinesPool) Close() {
67 close(p.closed)
68}

Callers 2

Calls

no outgoing calls

Tested by 2