Lock

Lock

A classic multitasking lock mechanism.

Constructor

new Lock()

Source:
See:

Classes

Lock

Methods

(async) acquire()

Source:
Acquire the lock if available, otherwise wait until it is released and then take the lock and return.

locked() → {boolean}

Source:
Indicates the internal locked state of the Lock.
Returns:
Type
boolean

release()

Source:
Release this lock and wake up and calls to acquire.