aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/runtime/scheduler_none.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/scheduler_none.go')
-rw-r--r--src/runtime/scheduler_none.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/scheduler_none.go b/src/runtime/scheduler_none.go
index 7775b360e..a5acfd430 100644
--- a/src/runtime/scheduler_none.go
+++ b/src/runtime/scheduler_none.go
@@ -6,6 +6,9 @@ import "internal/task"
const hasScheduler = false
+// No goroutines are allowed, so there's no parallelism anywhere.
+const hasParallelism = false
+
// run is called by the program entry point to execute the go program.
// With the "none" scheduler, init and the main function are invoked directly.
func run() {