Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
动态大小的并发安全队列。同时,gqueue
也支持固定队列大小,固定队列大小时队列效率和标准库的channel
无异。
使用场景:
该队列是并发安全的,常用于多goroutine
数据通信且支持动态队列大小的场景。
使用方式:
import "github.com/gogf/gf/container/gqueue"
接口文档:
Panel | ||
---|---|---|
| ||
|