AnyLock interface
Lock implementation interface to follow
Signature:
export interface AnyLock
Methods
|
Method |
Description |
|---|---|
|
Implements lock acquire logic asynchronously | |
|
Implements lock safe destruction asynchronously | |
|
Must free all local resources held by the lock (timers, client event listeners, registry entries) without any database communication. Used when the underlying connection is already gone. | |
|
Must initialize lock asynchronously | |
|
Implements lock acquire verification asynchronously | |
|
Implements late lock acquire handler upset. The handler is called when the lock gets taken over by a retry, long after the acquire() caller has given up - which makes it the only chance for that caller to finish whatever the lock was being acquired for. | |
|
Implements lock release handler upset | |
|
Implements lock release logic asynchronously |
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.