Skip to content

aiio/aipool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aipool

LINK Go Report Card GoDoc LICENSE

Example

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()
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages