build: separate compiler and libs
This commit is contained in:
20
compiler/cl/_testlibgo/waitgroup/in.go
Normal file
20
compiler/cl/_testlibgo/waitgroup/in.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"sync"
|
||||
)
|
||||
|
||||
func main() {
|
||||
var wg sync.WaitGroup
|
||||
wg.Add(2)
|
||||
go func() {
|
||||
defer wg.Done()
|
||||
println("work 1")
|
||||
}()
|
||||
go func() {
|
||||
defer wg.Done()
|
||||
println("work 2")
|
||||
}()
|
||||
wg.Wait()
|
||||
println("done")
|
||||
}
|
||||
Reference in New Issue
Block a user