You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Current »

动态大小的并发安全队列。同时,gqueue也支持固定队列大小,固定队列大小时队列效率和标准库的channel无异。

使用场景

该队列是并发安全的,常用于多goroutine数据通信且支持动态队列大小的场景。

使用方式

import "github.com/gogf/gf/container/gqueue"

接口文档

https://godoc.org/github.com/gogf/gf/container/gqueue

Content Menu

  • No labels