lockMutex | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function lockMutex

    • Lock the requested mutex

      Parameters

      • name: string

        The name of the mutex to lock

      Returns Promise<Mutex>

      A locked mutex, or null if locking failed due to a timeout

    • Lock the requested mutex

      Parameters

      • name: string

        The name of the mutex to lock

      • options: { __skipNameCheck?: boolean; timeout: WaitPeriod }

        timeout optional timeout in milliseconds. If not specified, the mutex will be waited for indefinitely

      Returns Promise<null | Mutex>

      A locked mutex, or null if locking failed due to a timeout