runtime: make channels parallelism-safe

This commit is contained in:
Ayke van Laethem
2024-11-27 10:52:07 +01:00
committed by Ron Evans
parent 17302ca762
commit 6110f0bc1b
4 changed files with 108 additions and 30 deletions
+3
View File
@@ -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() {