mirror of
https://github.com/hibiken/asynq.git
synced 2024-12-25 07:12:17 +08:00
update doc comment
This commit is contained in:
parent
c8db042ff0
commit
6021356fb5
@ -104,6 +104,7 @@ func (s *Semaphore) Release(ctx context.Context) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// LockCount returns the number of currently acquired tokens.
|
||||||
func (s *Semaphore) LockCount(ctx context.Context) (int64, error) {
|
func (s *Semaphore) LockCount(ctx context.Context) (int64, error) {
|
||||||
return s.rc.ZCard(ctx, semaphoreKey(s.scope)).Result()
|
return s.rc.ZCard(ctx, semaphoreKey(s.scope)).Result()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user