Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "wordpress-packages/real-queue/lib/queue/tabBridge/lockTab"

Index

Variables

Const LOCAL_STORAGE_KEY_LOCK_TAB

LOCAL_STORAGE_KEY_LOCK_TAB: "real-queue-lock-tab" = "real-queue-lock-tab"

Let keepUpToDateInterval

keepUpToDateInterval: ReturnType<typeof setInterval>

Functions

lockTab

  • lockTab(state?: boolean): boolean
  • Lock this tab as "current runner". This allows you to run the queue only in one tab.

    Parameters

    • Optional state: boolean

    Returns boolean

    true when the current tab is locked and should not process any jobs

Generated using TypeDoc