mirror of
https://gitee.com/johng/gf
synced 2026-06-26 17:35:40 +08:00
gqueue改进,只留下interface{}类型的对象封装
This commit is contained in:
@ -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),
|
||||
|
||||
Reference in New Issue
Block a user