wait for threads to complete

This commit is contained in:
2023-07-30 00:43:34 +02:00
parent b2bd683e08
commit ccdf8c03ee
2 changed files with 11 additions and 0 deletions

View File

@@ -66,4 +66,7 @@ func main() {
panicErr(err)
os.Exit(1)
}
if threadCount > 0 {
<-threadChan
}
}