We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07d19b2 commit 8098dbbCopy full SHA for 8098dbb
src/runtime/debug.go
@@ -10,9 +10,8 @@ import (
10
)
11
12
// GOMAXPROCS sets the maximum number of CPUs that can be executing
13
-// simultaneously and returns the previous setting. If n < 1, it does not
14
-// change the current setting.
15
-// The number of logical CPUs on the local machine can be queried with NumCPU.
+// simultaneously and returns the previous setting. It defaults to
+// the value of runtime.NumCPU. If n < 1, it does not change the current setting.
16
// This call will go away when the scheduler improves.
17
func GOMAXPROCS(n int) int {
18
if GOARCH == "wasm" && n > 1 {
0 commit comments