UpgradeableLockHandle<TMutex, TUpgradedMutex> Interface
Package: @esfx/async-lockable
An object used to release a held lock or upgrade to a stronger lock.
Declaration
export interface UpgradeableLockHandle<TMutex extends AsyncLockable = AsyncLockable, TUpgradedMutex extends AsyncLockable = AsyncLockable> extends LockHandle<TMutex>
Methods
upgrade(cancelable)
Upgrades the lock to a stronger lock.
Declaration
upgrade(cancelable?: Cancelable): Promise<LockHandle<TUpgradedMutex>>;
Parameters
Returns
Promise<LockHandle<TUpgradedMutex>>