Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

使用场景

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

使用方式

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

接口文档

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


Panel
titleContent Menu

Table of Contents