Function: createLock()
createLock():
SimpleLock
Defined in: lock.ts:16
Creates a new instance of a simple lock. Allows acquiring and releasing the lock, with queued resolvers when the lock is held.
Returns
- The lock object with acquire and release methods.