Runner limits the number of concurrent git subprocesses via an internal semaphore. All git command invocations should go through a shared Runner instance so that the total system-wide subprocess count stays bounded.
| 17 | // semaphore. All git command invocations should go through a shared Runner |
| 18 | // instance so that the total system-wide subprocess count stays bounded. |
| 19 | type Runner struct { |
| 20 | sem chan struct{} |
| 21 | } |
| 22 | |
| 23 | // New creates a Runner that allows at most maxConcurrent simultaneous git |
| 24 | // subprocesses. If maxConcurrent <= 0 the default (16) is used. |
nothing calls this directly
no outgoing calls
no test coverage detected