(ctx context.Context, ch <-chan struct{})
| 240 | } |
| 241 | |
| 242 | func 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 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…