improve grpool

This commit is contained in:
John
2019-06-09 10:37:35 +08:00
parent e400a94ffb
commit 0b8c9713e6

View File

@ -14,11 +14,10 @@ import (
// Goroutine Pool
type Pool struct {
limit int // Max goroutine count limit.
count *gtype.Int // Current running goroutine count.
list *glist.List // Job list for asynchronous job adding purpose.
closed *gtype.Bool // Is pool closed or not.
workers chan struct{} // Goroutine workers using channel to implements blocking feature.
limit int // Max goroutine count limit.
count *gtype.Int // Current running goroutine count.
list *glist.List // Job list for asynchronous job adding purpose.
closed *gtype.Bool // Is pool closed or not.
}
// Default goroutine pool.