rapid-sdk
    Preparing search index...

    Function utilSessionMutex

    • A per-domain session mutex backed by a cookie and dead man's switch

      Parameters

      • name: string

        string name

      Returns { lock: () => boolean; locked: () => boolean; unlock: () => void }

      object that complies with utilSessionMutexType

      If the session crashes, the mutex will auto-release after 5 seconds.