2
0
mirror of https://github.com/hibiken/asynq.git synced 2024-12-25 23:32:17 +08:00

update doc comment

This commit is contained in:
ajatprabha 2022-10-22 19:35:51 +05:30
parent c8db042ff0
commit 6021356fb5
No known key found for this signature in database
GPG Key ID: EEA3FDB0312545DA

View File

@ -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()
} }