A lock for controlling concurrent access to shared resource.

interface Lock {
    acquire(options?): MaybePromise<void>;
    release(options?): MaybePromise<void>;
    tryAcquire(options?): MaybePromise<boolean>;
}

Implemented by

Methods

Generated using TypeDoc