MCPcopy Create free account
hub / github.com/docker/cli / drainChannel

Function drainChannel

e2e/global/cli_test.go:242–252  ·  view source on GitHub ↗
(ctx context.Context, ch <-chan struct{})

Source from the content-addressed store, hash-verified

240}
241
242func drainChannel(ctx context.Context, ch <-chan struct{}) {
243 go func() {
244 for {
245 select {
246 case <-ctx.Done():
247 return
248 case <-ch:
249 }
250 }
251 }()
252}

Callers 1

TestPromptExitCodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…