Framework
CatalogLockManager
Class: CatalogLockManager
Lock manager for catalog operations.
Provides per-model catalog locking to serialize catalog mutations.
Constructors
new CatalogLockManager()
new CatalogLockManager(): CatalogLockManagerReturns
Methods
withCatalogLock()
withCatalogLock<T>(modelKey, fn): Promise<T>Execute a function while holding the catalog lock for a model.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
modelKey | string | Model key |
fn | () => Promise<T> | Function to execute |
Returns
Promise<T>
Result of the function
