@ac-essentials/misc-util
    Preparing search index...

    Class LockableBaseAbstract

    Interface representing a lockable resource.

    A lockable resource can be acquired and released to ensure exclusive access.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    locked: boolean

    Indicates whether the lock is currently held.

    Methods

    • Acquires the lock, waiting if necessary until it is available.

      Parameters

      • Optionalsignal: null | AbortSignal

        An optional AbortSignal to cancel the acquire operation.

      Returns Promisable<Callable>

      A promise that resolves to a function that releases the lock.