- Preparing search index...
- The search index is not available
Deepkit
Methods
acquireLock
- acquireLock(id: string, ttl?: number, timeout?: number): Promise<ProcessLock>
-
Parameters
-
id: string
-
ttl: number = 0
-
timeout: number = 0
isLocked
- isLocked(id: string): boolean
-
Returns boolean
tryLock
- tryLock(id: string, ttl?: number): Promise<undefined | ProcessLock>
-
Parameters
-
id: string
-
ttl: number = 0
Returns Promise<undefined | ProcessLock>
optional defines when the times automatically unlocks.