@freedomofpress/webcat
    Preparing search index...

    Class Lock

    A Disposable that holds a Releasable (e.g. a Mutex) and releases it when disposed. When multiple scopes hold the same Lock, the Releasable is only released when all holders have disposed.

    Implements

    Index
    mutex: Releasable

    The object held by this Lock; usually a Mutex.

    • get "[dispose]"(): () => void

      Implements the Disposable interface.

      Returns () => void