MCPcopy Create free account
hub / github.com/alibaba/open-code-review / Runner

Struct Runner

internal/gitcmd/runner.go:19–21  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

17// semaphore. All git command invocations should go through a shared Runner
18// instance so that the total system-wide subprocess count stays bounded.
19type 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected