Skip to content

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

SimpleLock

  • The lock object with acquire and release methods.

Released under the MIT License.