aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/runtime/scheduler_cooperative.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/scheduler_cooperative.go')
-rw-r--r--src/runtime/scheduler_cooperative.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/runtime/scheduler_cooperative.go b/src/runtime/scheduler_cooperative.go
index 5c4dfd5bf..91ba86409 100644
--- a/src/runtime/scheduler_cooperative.go
+++ b/src/runtime/scheduler_cooperative.go
@@ -21,6 +21,12 @@ import (
// queue a new scheduler invocation using setTimeout.
const asyncScheduler = GOOS == "js"
+const hasScheduler = true
+
+// Concurrency is not parallelism. While the cooperative scheduler has
+// concurrency, it does not have parallelism.
+const hasParallelism = false
+
// Queues used by the scheduler.
var (
runqueue task.Queue
@@ -248,5 +254,3 @@ func run() {
}()
scheduler(false)
}
-
-const hasScheduler = true