mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 12:11:47 +00:00
Update acquire() and lock() to support multi locks (#36430)
This commit is contained in:
committed by
Ryan Cavanaugh
parent
5ba85a4045
commit
e4a0d4f532
Vendored
+2
-2
@@ -55,8 +55,8 @@ declare class Redlock extends EventEmitter {
|
||||
|
||||
constructor(clients: Redlock.CompatibleRedisClient[], options?: Redlock.Options);
|
||||
|
||||
acquire(resource: string, ttl: number, callback?: Redlock.Callback<Redlock.Lock>): Promise<Redlock.Lock>;
|
||||
lock(resource: string, ttl: number, callback?: Redlock.Callback<Redlock.Lock>): Promise<Redlock.Lock>;
|
||||
acquire(resource: string | string[], ttl: number, callback?: Redlock.Callback<Redlock.Lock>): Promise<Redlock.Lock>;
|
||||
lock(resource: string | string[], ttl: number, callback?: Redlock.Callback<Redlock.Lock>): Promise<Redlock.Lock>;
|
||||
|
||||
disposer(resource: string, ttl: number, errorHandler?: Redlock.Callback<void>): Promise.Disposer<Redlock.Lock>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user