# Functions
NewConcurrentArrayBlockingQueue 创建一个有界阻塞队列 容量会在最开始的时候就初始化好 capacity 必须为正数.
NewConcurrentLinkedBlockingQueue 创建链式阻塞队列 capacity <= 0 时,为无界队列.
No description provided by the author
NewConcurrentPriorityQueue 创建优先队列 capacity <= 0 时,为无界队列.
No description provided by the author
No description provided by the author
# Variables
ErrOutOfCapacity 超过容量.
# Structs
ConcurrentArrayBlockingQueue 有界并发阻塞队列.
ConcurrentLinkedBlockingQueue 基于链表的并发阻塞队列 如果 maxSize 是正数。那么就是有界并发阻塞队列 如果不是,就是无界并发阻塞队列, 在这种情况下,入队永远能够成功.
ConcurrentLinkedQueue 无界并发安全队列.
No description provided by the author
DelayQueue 延时队列 每次出队的元素必然都是已经到期的元素,即 Delay() 返回的值小于等于 0 延时队列本身对时间的精确度并不是很高,其时间精确度主要取决于 time.Timer 所以如果你需要极度精确的延时队列,那么这个结构并不太适合你。 但是如果你能够容忍至多在毫秒级的误差,那么这个结构还是可以使用的.
No description provided by the author
# Interfaces
BlockingQueue 阻塞队列 参考 Queue 普通队列 一个阻塞队列是否遵循 FIFO 取决于具体实现.
No description provided by the author
Queue 普通队列 参考 BlockingQueue 阻塞队列 一个队列是否遵循 FIFO 取决于具体实现.