- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for SetLimit (0.1 sec)
-
src/cmd/vendor/golang.org/x/sync/errgroup/errgroup.go
} }() return true } // SetLimit limits the number of active goroutines in this group to at most n. // A negative value indicates no limit. // // Any subsequent call to the Go method will block until it can add an active // goroutine without exceeding the configured limit. // // The limit must not be modified while any goroutines in the group are active. func (g *Group) SetLimit(n int) { if n < 0 { g.sem = nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:57:25 UTC 2024 - 3.3K bytes - Viewed (0) -
src/cmd/go/internal/base/limit.go
"runtime" "strconv" "sync" ) var NetLimitGodebug = godebug.New("#cmdgonetlimit") // NetLimit returns the limit on concurrent network operations // configured by GODEBUG=cmdgonetlimit, if any. // // A limit of 0 (indicated by 0, true) means that network operations should not // be allowed. func NetLimit() (int, bool) { netLimitOnce.Do(func() { s := NetLimitGodebug.Value() if s == "" { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 19 02:47:12 UTC 2023 - 1.9K bytes - Viewed (0)