Lock

Lock

new Lock()

Source:

Methods

(async) acquire(key) → {boolean|void}

Source:
Parameters:
Name Type Description
key string
Returns:
Type
boolean | void

(async) release(key)

Source:

release a lock

Parameters:
Name Type Description
key string

(async) tryAcquire(key) → {boolean}

Source:
Parameters:
Name Type Description
key string
Returns:
Type
boolean