package
0.0.0-20240809011500-085f6154bf8b
Repository: https://github.com/skeletongo/cube.git
Documentation: pkg.go.dev
# Functions
Close 通知所有协程关闭并等待所有协程处理完成.
No description provided by the author
Go 启动一个协程,在默认节点上执行回调方法 callFunc 在协程中执行的方法 callbackFunc 回调方法.
No description provided by the author
No description provided by the author
New 创建协程对象 o 回调方法执行节点.
No description provided by the author
No description provided by the author
NewKey 创建协程对象 o 回调方法执行节点.
NewQ 创建协程队列 o 回调方法执行节点.
No description provided by the author
# Variables
No description provided by the author
# Structs
No description provided by the author
Consistent 基于一致性hash,根据名称哈希值分配是否在同一个协程中执行.
G 等同于go协程.
No description provided by the author
Key 相同名称的任务在同一个协程中执行.
Q 协程队列,同一个队列中的协程串行执行.