LogoRobo.js
Packages@robojs/sync

LockContext

Interface: LockContext

Lock context for lockable SyncBox. Provides lock/unlock capabilities and ownership tracking.

Properties

PropertyTypeDescription
isLockedbooleanWhether the box is currently locked by anyone
isLockHolderbooleanWhether current client holds the lock
lock() => voidAcquire the lock (automatically uses current client ID)
lockedBynull | stringClient ID of the lock holder, or null if unlocked
unlock() => voidRelease the lock

On this page