AsyncLockable Interface

    Package: @esfx/async-lockable

    Represents a value that can be used to synchronize access to a resource.

    Declaration
    export interface AsyncLockable 

    Methods

    [AsyncLockable.lock](cancelable)

    Takes a lock.

    Declaration
    [AsyncLockable.lock](cancelable?: Cancelable): Promise<LockHandle>;
    Parameters
    cancelable
    Cancelable

    A Cancelable object that can be used to cancel the request.

    Returns
    Promise<LockHandle>

    [AsyncLockable.unlock]()

    Releases a lock.

    Declaration
    [AsyncLockable.unlock](): void;
    Returns
    void

    Generated by DocFX