mirror of
https://gitee.com/johng/gf
synced 2026-06-06 02:25:47 +08:00
refract package gtimer for more stable
This commit is contained in:
@ -129,7 +129,7 @@ func (q *Queue) Close() {
|
||||
|
||||
// Len returns the length of the queue.
|
||||
// Note that the result might not be accurate as there's a
|
||||
// asynchronize channel reading the list constantly.
|
||||
// asynchronous channel reading the list constantly.
|
||||
func (q *Queue) Len() (length int) {
|
||||
if q.list != nil {
|
||||
length += q.list.Len()
|
||||
|
||||
Reference in New Issue
Block a user