refract package gtimer for more stable

This commit is contained in:
John Guo
2021-05-15 18:13:51 +08:00
parent cc1224e032
commit d76e4c8aed
21 changed files with 549 additions and 624 deletions

View File

@ -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()