Something went wrong. Try again.
🌱 A minimal programming language and compiler. git.urbach.dev/cli/q
high-performance programming-language compiler
Something went wrong. Try again.
12345678910111213141516171819202122232425package compiler
import ( "iter" "sync"
"git.urbach.dev/cli/q/src/core")
// parallel starts a goroutine for each function and waits for completion.func parallel(functions iter.Seq[*core.Function], call func(*core.Function)) { wg := sync.WaitGroup{}
for function := range functions { if function.IsExtern() { continue }
wg.Go(func() { call(function) }) }
wg.Wait()}