Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LockFree ¶
type LockFree struct {
// contains filtered or unexported fields
}
func NewLockFree ¶
func NewLockFree(dispatcher dispatcher.Dispatcher, recipient Recipient) *LockFree
NewLockFree 创建一个基于无锁队列实现的邮箱,该邮箱基于 queues.LFQueue 实现
- 默认邮箱在 userMessageBatchLimit 大于 1 时需要注意,一批用户消息将会被处理,而不会被系统消息抢先执行
func (*LockFree) DeliverySystemMessage ¶
func (*LockFree) DeliveryUserMessage ¶
Click to show internal directories.
Click to hide internal directories.