Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 224 Bytes

README.md

File metadata and controls

11 lines (9 loc) · 224 Bytes

threadpool-go

Simple thread pool implementation in go

tp := threadpool.Create(N) // N - amount of goroutines needs to be running
task := tp.Run(func() {
	time.Sleep(time.Seconds * 5)
})
task.Status() // Running