package main
import (
"fmt"
"time"
"github.com/aiio/aipool"
)
func main() {
pool := aipool.New(10)
for i := 0;i<1000;i++ {
pool.Add()
go func() {
// TODO something
time.Sleep(1)
fmt.Print(".")
pool.Done()
}()
}
pool.Wait()
}
-
Notifications
You must be signed in to change notification settings - Fork 0
aiio/aipool
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Packages 0
No packages published