We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a86162c commit 05ea698Copy full SHA for 05ea698
src/runtime/debug.go
@@ -14,7 +14,7 @@ import (
14
// the value of [runtime.NumCPU]. If n < 1, it does not change the current setting.
15
// This call will go away when the scheduler improves.
16
func GOMAXPROCS(n int) int {
17
- if GOARCH == "wasm" && n > 1 {
+ if (GOARCH == "wasm" || GOOS == "tamago") && n > 1 {
18
n = 1 // WebAssembly has no threads yet, so only one CPU is possible.
19
}
20
0 commit comments