Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Limiter ¶
func NewLimiter ¶
type Unilimiter ¶
Unilimiter UniLimiter 唯一限制器 单 goroutine 限制访问
func NewUnilimiter ¶
func NewUnilimiter[K huago.KeyAble]() *Unilimiter[K]
func (*Unilimiter[K]) Check ¶
func (l *Unilimiter[K]) Check(key K) bool
func (*Unilimiter[K]) Release ¶
func (l *Unilimiter[K]) Release(key K)
Click to show internal directories.
Click to hide internal directories.