gqueue改进,只留下interface{}类型的对象封装

This commit is contained in:
John
2018-02-02 15:20:34 +08:00
parent 5287d171ee
commit 7444b8aa2c

View File

@ -19,7 +19,7 @@ type Queue struct {
events chan struct{}
}
func NewQueue() *Queue {
func New() *Queue {
return &Queue {
list : list.New(),
events : make(chan struct{}, math.MaxInt64),