mirror of
https://gitee.com/johng/gf.git
synced 2024-12-02 12:17:53 +08:00
finish example for gqueue
This commit is contained in:
parent
e8f6ebc154
commit
38b797b42f
@ -111,13 +111,8 @@ func ExampleQueue_Len() {
|
||||
q.Push(1)
|
||||
q.Push(2)
|
||||
|
||||
time.Sleep(time.Millisecond)
|
||||
fmt.Println(q.Len())
|
||||
q.Pop()
|
||||
q.Close()
|
||||
fmt.Println(q.Len())
|
||||
|
||||
// Output:
|
||||
// 2
|
||||
// 0
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user