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

    Function lockMutex

    Lock the requested mutex

    The name of the mutex to lock

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

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

    • Parameters

      • name: string

      Returns Promise<Mutex>

    • Parameters

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

      Returns Promise<null | Mutex>

    • Parameters

      • name: string
      • options: { __skipNameCheck?: boolean }

      Returns Promise<Mutex>